Reputation: 2759
Is it possible in doctrine2 to use a calculated column in the mapping definition? I have for example a table that has a column called quantity
and a column unit_price
. I want to add a calculated column price
to the mapping which will be calculated by multiplying quantity
and unit_price
. I know that this will only be possible for SELECT statements.
Could this be achieved using doctrine2?
Upvotes: 2
Views: 6694
Reputation: 3656
This cannot be done with doctrine explicitly.
Upvotes: 3