Archives: 2009 February 23


February 23rd, 2009, 4 Comments

Ever want to set an attribute in Active Record with a MySQL function? For instance, often times you need to set an attribute to the well known MySQL function “NOW()”. Most people first attempt this in the following way: <?php $model->createdDate = ‘NOW()'; The above, however, will most definitely not work. Why not? Because Yii […]

Feed / 2009 February 23