This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Bridge/Doctrine
Bernhard Schussek 49d1464b43 [Form] Implemented MergeCollectionListener which calls addXxx() and removeXxx() in your model if found
The listener is used by the Collection type as well as the Choice and Entity type (with multiple
selection). The effect is that you can have for example this model:

    class Article
    {
        public function addTag($tag) { ... }
        public function removeTag($tag) { ... }
        public function getTags($tag) { ... }
    }

You can create a form for the article with a field "tags" of either type "collection" or "choice"
(or "entity"). The field will correctly use the three methods of the model for displaying and
editing tags.
2012-02-02 11:16:21 +01:00
..
DataCollector [DoctrineBridge] Refactored the query sanitization in the collector 2012-01-23 10:57:46 +01:00
Fixtures Coding standards and removing whitespace. 2011-12-24 15:50:47 +05:45
Form [Form] Implemented MergeCollectionListener which calls addXxx() and removeXxx() in your model if found 2012-02-02 11:16:21 +01:00
Security/User Fixed tests added from 2.0 2011-12-22 17:52:42 +01:00
Validator/Constraints merged 2.0 2011-11-08 08:38:14 +01:00
DoctrineOrmTestCase.php fix for entity choice list when ->loaded is false and the class name is an entity shorthand name 2012-02-01 19:13:06 +01:00