3. Proč Kdyby?
- Doctrine má spoustu skvělých vlastností
- Doctrine má spoustu otravných vlastností
- Kdyby je plug&play (convention over
configuration), tedy konfigurace na pár řádků a
hned můžete pracovat
14. Ne, repository nestačí...
$article = new Article();
$article->title = "The Tigger Movie";
$articles->save($article);
$article = $articles->find(1);
echo $article->title; // "The Tigger Movie"
15. Repozitář umí hezky nabobtnat
class ArticlesDao extends EntityDao
{
function findByTitle($title);
function findByStepmothersBrothersEyeColor();
function findBy...();
}
16. Hlavně žádné další dědění!
class ArticlesDao extends EntityDao
{
function findByTitle($title);
function findByStepmothersBrothersEyeColor();
function findBy...();
}