[PHP-DB] Efficiency of DDD programing

2011-11-20 Thread Fanda
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

Re: [PHP-DB] Efficiency of DDD programing

2011-11-20 Thread Karl DeSaulniers
foreach ($articles as $author = $article) { echo(author.$i. =.$author.brarticle=.$article); } I think. I could be corrected. Not to mention, did you mean to spell your function like this? getAutor? Or did you mean getAuthor? HTH, Best, Karl Sent from losPhone On Nov 20, 2011, at 8:24 AM,

Re: [PHP-DB] Efficiency of DDD programing

2011-11-20 Thread Tamara Temple
Fanda d...@sidak.net wrote: 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)