Let say I have 3 tables: Book, Author and BookAuthor.
Bookhasid,nameAuthorhasid,nameBookAuthorhasid,book_id,author_id
I want to find all books of an author, and I know author_id. Can anyone show me how to do this with Doctrine Query Language?
I think there are few ways:
1
In action:
In model:
2
Sometime for example you have some parameter in book table, for example book can be active or not.
In action:
In model: