how to solve this problem:

If I write a repository for each entity, article and autor for example, article 
is composed of autor and some other things, then I want to select some articles:

$articles = $articleRepo->findLast(10);
foreach ($articles as $article) {
    // echo article content
    // echo
    $article->getAutor(); // next query into database, in each cycle

Is some elegant way, how to do this (optimise)?

Thank you.

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to