add support for SoftDeleteable #123

Merged
merged 3 commits into from Apr 7, 2012

Projects

None yet

2 participants

@igorw
Contributor
igorw commented Apr 6, 2012

No description provided.

@stof
Owner
stof commented Apr 6, 2012

@igorw can you update the doc too ? It needs to explain how to add the filter

@igorw
Contributor
igorw commented Apr 6, 2012

Done.

@stof stof commented on an outdated diff Apr 6, 2012
Resources/doc/index.rst
+
+::
+
+ # app/config/config.yml
+ doctrine:
+ orm:
+ entity_managers:
+ default:
+ filters:
+ softdeleteable:
+ class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
+ enabled: true
+
+.. note::
+
+ If you are using the short syntax for the ORM configuration, the `mappings`
@stof
stof Apr 6, 2012 Owner

filters, not mappings

@stof stof commented on an outdated diff Apr 6, 2012
Resources/doc/index.rst
+ orm:
+ entity_managers:
+ default:
+ filters:
+ softdeleteable:
+ class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
+ enabled: true
+
+.. note::
+
+ If you are using the short syntax for the ORM configuration, the `mappings`
+ key is directly under `orm:`
+
+.. note::
+
+ If you are using several entity managers, take care to register the entities
@stof
stof Apr 6, 2012 Owner

this is about registering filters, not entities

@stof stof merged commit 59be31e into stof:master Apr 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment