I'm building a project using Doctrine 2 to interact with my database (I'm usign postgres).
For one of my entities I need to have a field that, on insert, is populated using a postgres function.
Is there a way to this with Doctrine? Is there an annotation to specify this? Otherwise, is there a way to override the query made when performing the database insert?