Skip to content

OneToMany Doctrine relation. #454

@stevs986

Description

@stevs986

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions