Yes, The Entity and persisted and given the flush.
If call out of the pool with User class is found. but I can only find it
through the user entity after a reflesh
Em terça-feira, 17 de fevereiro de 2015 16:25:17 UTC-2, João Carlos Santa
Ana escreveu:
>
> I can not see where it solves the problem
>
> Em terça-feira, 17 de fevereiro de 2015 01:21:18 UTC-2, Matthew Stuart
> escreveu:
>>
>> Were you at any time persisting the new address btw?
>> What’s the code for getAdress look like?
>>
>> Try:
>>
>> public function setAddress($address) {
>> if (!($address instanceof \User\Entity\Address) && null !=
>> $address):
>> throw new \InvalidArgumentException('Typo de variável não
>> corresponde ao esperado. Esperado:\User\Entity\Address.', 10601);
>> endif;
>>
>> $this->addresses->add($address);
>> return $this;
>> }
>
>
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.