Doctrine2 - HasLifecycleCallbacks - Semantischen Fehler

wenn ich versuche mein Projekt bereitstellen auf dem server und ich nutze CLI

php app/console doctrine:schema:update

bekam ich diese Fehlermeldung:

[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The annotation "@Doctrine\ORM\Mapping\prePersist" in method ... does not exist, or could not be auto-loaded.

dies ist mein code:

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity(repositoryClass="...")
 * @ORM\Table(name="...")
 * @ORM\HasLifecycleCallbacks()
 */
class User {

lokal auf meinem php5.4.4 WAMP funktioniert auch alles schön.

Irgendeine Idee?

Schreibe einen Kommentar