[ACCEPTED]-doctrine: setting association with id instead of object instance-doctrine-orm
Accepted answer
You can use:
$comment->setArticle($em->getReference('Article', 10));
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.