Was getting the above error in my Doctrine project, turned out I had used a single quote in the ORM Annotations:

    /**
     * @ORM\Column(type='integer', name='row_number')
     * @var int
     */
    protected $rowNumber;

Your ORM Annotations must be double quotes ” to allow the read ahead to read ahead…

Should be like:

    /**
     * @ORM\Column(type="integer", name="row_number")
     * @var int
     */
    protected $rowNumber;

By admin

14 thought on “Message: [Syntax Error] Expected PlainValue, got ”’ at position x in property {model}”
  1. This is the magic of the internet. Almost 10 years later and still helping people. The author could even already be dead, but his legacy lives on.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.