Doctrine ORM
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
Doctrine është ORM-i kryesor i Symfony-së. Ndryshe nga Eloquent (Active Record), përdor modelin „Data Mapper“: entitetet janë klasa të thjeshta, dhe EntityManager i ruan në databazë.
EnglishEN
Doctrine is Symfony's main ORM. Unlike Eloquent (Active Record), it uses the “Data Mapper” pattern: entities are plain classes, and the EntityManager saves them to the database.
Si ta mendosh
Si një arkivist që i fut dosjet në arkiv, në vend që dosjet të futen vetë.
Lexoje në anglisht
Like an archivist filing the folders, instead of folders filing themselves.
Shembull kodiphp
$nx = new Nxenes('Arta');
$em->persist($nx);
$em->flush();