Hi Mohammad, This is indeed achieved via a custom ID strategy.
You may want to look at these implementations: - https://github.com/doctrine/doctrine2/blob/599f99471ef1e3aa47b79e45c02a72553bc1b786/lib/Doctrine/ORM/Id/SequenceGenerator.php - https://github.com/doctrine/doctrine2/blob/599f99471ef1e3aa47b79e45c02a72553bc1b786/lib/Doctrine/ORM/Id/IdentityGenerator.php Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 28 November 2015 at 09:55, Mohammad ZeinEddin <[email protected]> wrote: > Is there anyway I can remove column from insert/update? any help? > > On Wednesday, February 13, 2013 at 12:57:48 PM UTC+2, Mohammad ZeinEddin > wrote: >> >> I have Doctrine 2 Entity mapped to Oracle DB table, and this table has an >> auto generated ID column by some trigger, so I want to do insert data >> without the ID column, how can I make it something like read only column? >> i.e. not including it in the insert? I know I can do a custom generate >> strategy for ID, but I just want it to be handled by the DB, and I want to >> be able to read it... any thoughts how to do that? >> > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
