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

OneToMany Doctrine relation. #454

Open
stevs986 opened this issue Jun 15, 2018 · 0 comments
Open

OneToMany Doctrine relation. #454

stevs986 opened this issue Jun 15, 2018 · 0 comments

Comments

@stevs986
Copy link

Hi is there any option to create more than one related entity. In example in your test you have User and Cat. Is there any option to create more than one Cat which is related to User. Something like:
static::$fm->define(self::USER_ENTITY)->setDefinitions([ 'name' => Faker::firstNameMale(), 'email' => Faker::email(), 'cat' => 'entity[5]|'.self::CAT_ENTITY, ]);

Note [5] in entity creation definition.

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