1

I have fixtures (alice) who are populating an array collection (OneToMany) like :

types: ['@type1', '@type2', '@typeSpecific'] 

The problem is that stuff are not taken into account and when i'm testing my code, i see that all the other fields are populated, but this $types is an empty collection. Someone have experienced that ?

Thank you devs.

4

1 回答 1

0

Fixed.

In the relation related entity, addType should be implemented like :

$this->types[] = $type;

$type->setMyRelation($this);
于 2016-09-29T10:39:57.070 回答