doctrine2 - Syntax error with execute a query with one to one -
i have 2 entities:
user
entity 2 fields are:id
(@id),username
profile
entity 2 fields are:user
(@onetoone,targetentity="user"),fullname
but when make query try things read jpa book:
select p profile p p.user.username = 'john'
it alerts me message:
[syntax error] line 0, col 55: error: expected =, <, <=, <>, >, >=, !=, got '.'
as of current ebnf, syntax used invalid in doctrine 2 orm. have join related entity following:
select p profile p join p.user u u.username = :username
Comments
Post a Comment