2007/10/2, Tamcy <[EMAIL PROTECTED]>:
> However,
>
> $post = new Post;
> $post->validateDate('This is not a day!'); // throws an exception -
> which doesn't seem right to me.
Here you can do:
try
{
$post = new Post();
$post->validateDate('prout');
$post->save();
}
catch (sfValidateException $e)
{
// Handle validation error(s)
}
catch (PropelException $e)
{
// Handle Propel error
}
++
--
Nicolas Perriault http://www.clever-age.com
Clever Age - conseil en architecture technique
GSM: +33 6 60 92 08 67 Tél: +33 1 53 34 66 10
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---