Go to Google Groups Home    doctrine-dev
mapValue - documentation incorrect

Adam Huttler <adam.hutt...@fracturedatlas.org>

Hi,

The documentation for mapping custom values is incorrect:
http://www.doctrine-project.org/documentation/manual/1_1/en/component...
view#record:mapping-custom-values

The example in the docs shows $this->mapValue() being called in
setTableDefinition(), but that doesn't work. It needs to be called in
construct() for it to work correctly.

Having said that, I think this is the wrong approach. Doesn't it make more
sense to define a custom property in setTableDefinition(), alongside all
of the regular columns?

Thanks,
Adam