Affects Version/s: 2.3.2
Fix Version/s: None
Environment:debian 6, php 5.4.10
After updating to from symfony 2.0 to symfony 2.1, creating a new mapping did not work when using \Doctrine\ORM\Mapping\ClassMetadata::mapOneToMany().
The code used was:
A manyToOne mapping from RolapDealP1m to Deal was already created in the RolapDealP1m entity class.
Then, a query using the queryBuilder was created like this:
The problem occurs, when doing a simple
On symfony 2.0 using doctrine 2.2.2 it worked fine, the result was returned.
On symfony 2.1 using doctrine 2.3.2 and 2.2.2 an error occurs:
As a workaround, we added the OneToMany mapping to the Deal Entity instead of using a temporary mapping. This worked fine with symfony 2.1/doctrine 2.3.2.
We think there has been a regression when trying to create temporary mappings.