Open matheo opened 13 years ago
Looking for volunteers for this please @cmfcmf @nmpetkov @craigh @planetenkiller
I cannot
No sorry. I only used DBUtil for now. Doctrine is new for me too.
Me too. I'm using some doctrine commands, but I'm at the stage I can't understand why table structures are placed in php comments... :-( Also I'm not sure how doctrine implements JOIN's and other database queries, which are essential for large content/database management. Also I'm new to Clip at all.
@nmpetkov Doctrine 2 implements what is called the "data mapper" pattern. So basically, Doctrine just needs a map of how entities are structured and their relations, so it can map them. this can be done using XML, YML, plain old arrays (like our DBUtil tables.php) or annotations. Annotations (written in docblock comments) are just another way of telling Doctrine about the mapping. Overall, Annotations are an extremely useful feature allowing one to add features to code without having to write code as it were. Here's a wonderful example: http://symfony.com/doc/master/bundles/SensioFrameworkExtraBundle/annotations/converters.html
Thank you. It's good that comments are just one of the options to specify structure of database.
@nmpetkov - see http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#property-mapping there are tabs showing YML/XML as well as annotations.
Refactor Clip for Doctrine 2.