doctrine2 - Syntax error with execute a query with one to one -


i have 2 entities:

  1. user entity 2 fields are: id (@id), username
  2. 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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -