プロジェクトをサーバーにデプロイしようとして、CLI で使用する場合
php app/console doctrine:schema:update
私はこのエラーを受け取りました:
[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The annotation "@Doctrine\ORM\Mapping\prePersist" in method ... does not exist, or could not be auto-loaded.
これは私のコードです:
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="...")
* @ORM\Table(name="...")
* @ORM\HasLifecycleCallbacks()
*/
class User {
私のphp5.4.4 WAMPのlocalyはすべてうまくいきます。
何か案が?