Auto create date - annoation - Codeigniter 2 and Doctrine 2 |
[eluser]Mario Ropič[/eluser]
Hello! I am using Doctrine 2 with Codeigniter 2 and I would like to Doctrine automatically generate current date on insert in a given field in the table. CLASS FILE: Code: <?php INSERT METHOD: Code: $worker = new models\Workers(); Everytime I insert new record in table "workers", there is allways "created_on" field NULL instead of insertion date. What am I doing wrong? This question is also on Stack Overflow. |
Welcome Guest, Not a member yet? Register Sign In |