Created
June 23, 2010 21:34
-
-
Save KendallHopkins/450591 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$review = ReviewQuery::create() | |
->joinWith('Review.Book') | |
->joinWith('Book.Author') | |
->joinWith('Book.Publisher') | |
->findOne(); | |
$book = $review->getBook() // No additional query needed | |
$author = $book->getAuthor(); // No additional query needed | |
$publisher = $book->getPublisher(); // No additional query needed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment