[MODM-24] Hydratation of extra fields Created: 06/Jul/10 Updated: 19/Jul/10 Resolved: 19/Jul/10
|Project:||Doctrine MongoDB ODM|
|Reporter:||Anonymous||Assignee:||Jonathan H. Wage|
I'm working on a project using MongoDB with ODM especially for the schemaless features.
First, prior to save the document, I add the new mappings (imported from the inherited class) so they will be saved in the database. This part works fine.
I've made a quick patch for that, but it doesn't make any type cast, I didn't inspect the code deep enough to make it better.
In the Doctrine\ODM\MongoDB\Hydrator class (line 73) :
|Comment by Jonathan H. Wage [ 19/Jul/10 ]|
This is fixed now. Make sure your classes inheritance mapping is setup properly too if you have other problems.