NOW() is not a valid default in most RDBM's therefore Propel will not
accept it.

You need to add that functionality in your model classes. Override
save like so:

public function save($con = null)
{
 if (!$this->getDate()) {
   $this->setDate(date('Y-m-d H:i:s'));
 }

 return parent::save($con);
}

Regards,

Jamie Learmonth
Boxlight Media Ltd.

On 20 Ago, 06:49, "Ridvan Lakas ng Bayan S. Baluyos"
<[EMAIL PROTECTED]> wrote:
> Hi list,
>
> Whenever I run the ./symfony prople-build-model, I am encountering a problem
> that states it cannot parse the date/time value. I have a column date, which
> uses a default value `now()` whenever there is no value specified. The
> problem here is that the propel-build-model cannot recognize the function
> now() as a default value for the column.
>
> Is there any workaround for this?
>
> Thanks,
>
> Ridvan
>
> --
> リヅバン バルヨス
> [EMAIL PROTECTED]://ridvan.baluyos.nethttp://www.onxiam.com/people/rbaluyos
>
> Registered Linux User #439466
> Registered Ubuntu User #16034
> Q: Have you heard of the Object-Oriented way to get wealthy?
> A: Inheritance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to