Closed vkuchyn closed 7 years ago
@yegor256 take a look at this issue please and dispatch it somehow, see par.21
@vkuchyn well, what the problem is exactly with? you just implement that selection in Library.books()
. and then in each book you make new queries to retrieve authors. or I missed the point?
@yegor256 I'd like to use join, because with subselect approach we breaks performance conditions
@vkuchyn I guess it's more a question about object-oriented programming and design than about this library specifically, right? Please post it to my blog, we'll discuss there. Here the ticket may be closed, I think.
@yegor256 yes, you can close the ticket. Shall I post OOP/OOD question to proper topic as comment or there is an option to ask question, create topic, whatever at your blog? Thanks
@vkuchyn I would suggest to post it here: http://www.yegor256.com/2014/12/01/orm-offensive-anti-pattern.html Otherwise, you can join our Gitter chat and discuss it live with other OOP adepts: https://gitter.im/yegor256/elegantobjects Please, close the ticket (since you're the author of it), thanks
Hi The question is it possible to use this project for querying complex scripts where lots of joins. For example, I need to query books with authors (classic example) and map them to next structure
Here is my database. Suggest an author can write only one book for simplicity
books
authors
And next query
I would like to map next query to some implementation of interface
Library