Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Dakhtara opened this issue Feb 17, 2018 · 2 comments
Closed

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

Dakhtara opened this issue Feb 17, 2018 · 2 comments

Comments

@Dakhtara
Copy link

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
Copy link
Member

Duplicate of #772

@DonCallisto DonCallisto marked this as a duplicate of #772 Feb 17, 2018
@DonCallisto
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants