Skip to content

Annotation Reader

Mitchell van Wijngaarden edited this page May 10, 2014 · 1 revision

The annotation reader has two modes, Annotation Reader and Simple Annotation Reader. The difference these is that the Simple Annotation Reader only accepts Doctrine annotation.

/**
 * @Entity
 * @Table(name="users")
 */
class Article
{
    // Fields and methods here
}

The Simple Annotation Reader maps @Entity to @Doctrine\ORM\Mapping\Entity. This means that if you want to use custom annotations you shouldn't use the Simple Annotation Reader. Edit the simple_annotations key in the package configuration to choose which mode you want.

Default: false

'simple_annotations' => false,