Works. Thank you!
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To
You have the annotation in your ID field. You need to put this annotation at
the class level:
/**
*
@orm:Entity(repositoryClass="Sensio\HelloBundle\Entity\Repository\CustomerRepository")
* @orm:HasLifecycleCallbacks
*/
class Customer
{
//...
}
Regards.
On Thu, Feb 10, 2011 at 5:31 AM, st
On Wed, 9 Feb 2011 23:25:44 -0800 (PST), jdewit
wrote:
> I can't get @PrePersist to work.
>
>
> Also, how come I have to set "nullable=true" for each field to prevent
the
> error? I've used Doctrine2 before and never had to. Is there a better
way?
As for all other Doctrine annotations, you hav
I can't get @PrePersist to work.
Here's my entity
namespace Sensio\HelloBundle\Entity;
/**
*
@orm:Entity(repositoryClass="Sensio\HelloBundle\Entity\Repository\CustomerRepository")
*/
class Customer
{
/**
* @orm:id
* @orm:Column(type="integer")
* @orm:GeneratedValue(strategy="AUTO")