Yes I know these solution, but I have another related problem with Oracle computed columns, they must not be in the insert nor in the update statements, and so the same question applies for them, i.e. is there anyway not to make a column X appear in the insert/update statements in Doctrine2? setting it to null is not a solution since it will still be passed in the insert statement.
On Saturday, November 28, 2015 at 2:02:49 PM UTC+2, Marco Pivetta wrote: > > 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] > <javascript:>> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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.
