Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is there any way to create a doctrine entity without a need for setters? #447

Open
3amprogrammer opened this issue Sep 15, 2017 · 0 comments

Comments

@3amprogrammer
Copy link

I am using Codeception with Symfony and Doctrine2 modules enabled.
I would like to be able to do something like this

$movies = $I->haveMultiple(Movie::class, 15); // haveMultiple uses this library behind the scenes.

However this doesn't work if setters for each property of Movie class are missing.

Codeceptions' method haveInRepository seems to be using reflection to set those properties, but I must specify data explicitly.

Has this problem already been solved or should I write some custom adapter?

@3amprogrammer 3amprogrammer changed the title Question: Is there any way to create a doctrine entity without setters? Question: Is there any way to create a doctrine entity without the need for setters? Sep 15, 2017
@3amprogrammer 3amprogrammer changed the title Question: Is there any way to create a doctrine entity without the need for setters? Question: Is there any way to create a doctrine entity without a need for setters? Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant