symfony/symfony-docs — Issue #942: Update collection cookbook article in light of collection type bug #1540
Author: keymaster
Created: 2011-12-30 09:30:18+00:00
State: open

https://github.com/symfony/symfony/issues/1540

Perhaps just a mention of the need to (until the bug is fixed) manually update the owning side, as the form component won't call your setter on the inverse side to do that.

Something like what chetzof posted:

// hack to work around bindRequest not using class methods to populate data
foreach ( $product->getPictures() as $pic ) {
$pic->setProduct($product);
}

A simple warning like the above might save lots of people alot of time headscratching.