+ 7

Symfony | Doctrine vocabulary/ basic philosophy?

Am I right if I say? -An "entity" is an object instanciate from an Entity Class representing an entry. -An "entitymanager" is an object that kind of manage which databases need to be use during a request. -A "repository" is a kind of space where to manipulate requests. For example if I want to get 1 entry from my database it will use the manager to connect each database needed, preprare requests with the repository and return one entity as object? I try to get the basic concept before to go deeper. Thanks!

2nd May 2017, 12:17 PM
Geoffrey L
Geoffrey L - avatar
1 Antwort
+ 2
example $article = $entityManager->find('CMS\Article', 1234); $article->setHeadline('Hello World dude!'); $article is the entity repository: your database
4th May 2017, 9:35 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar