Efficiency of DDD programing

From: Date: Sun, 20 Nov 2011 14:24:57 +0000
Subject: Efficiency of DDD programing
Groups: php.db 
Request: Send a blank email to php-db+get-48097@lists.php.net to get a copy of this message
Hi, 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. F.

« previous php.db (#48097) next »