APY / APYDataGridBundle

Symfony Datagrid Bundle
MIT License
493 stars 343 forks source link

[Syntax Error] Lexer::T_FROM got ':' #1000

Closed Dakhtara closed 6 years ago

Dakhtara commented 6 years ago

Hi,

I am using the 3.0.2 version of APYDataGrid. Everything works fine except when I try to associate a column. I have followed the doc about it.

/**
 * Image
 *
 * @ORM\Table()
 * @ORM\Entity
 * @Vich\Uploadable
 * @GRID\Source(columns="id, path, imageName, game.title, createdAt", groupBy={"id"})
 */
class Image
{

   /**
     * @var Jeux
     * @ORM\ManyToOne()
     * @GRID\Column(field="game.title" ,title="Jeux", filter="select", selectFrom="query")
     */
    private $game;
}

It worked when i was on SF 2.8. But after upgrading it doesn't work anymore.

It works if i delete the column. But at the moment I add it it send me the error : [Syntax Error] line 0, col 69: Error: Expected Doctrine\ORM\Query\Lexer::T_FROM, got ':'

It doesn't look Doctrine works wrong Do you have any idea about it ? Thanks

DonCallisto commented 6 years ago

Duplicate of #772

DonCallisto commented 6 years ago

I've drafted a new release for this https://github.com/APY/APYDataGridBundle/releases/tag/3.1.2