- new Glorpen\Propel\PropelBundle\PropelBundle(),
+ new Glorpen\Propel\PropelBundle\PropelBundle(),
You can implement **ContainerAwareInterface** on your model to get access to *Container* through built-in service. Container is injected in *model.construct* event.
+If you find yourself with error like `Serialization of 'Closure' is not allowed` it is probably about some not serializable services injected in model (since propel occasionally serializes and unserializes data).
+Be aware that when using transaction on big amount of model objects with on-demand formatter they still will be cached inside service so you can exhaust available php memory.
And example how you can use available hooks (code mostly borrowed from Symfony2 cookbook):
Calls to Query::find(), Peer::populateObject() etc. will now return your extended class objects.
+- extending Model classes used by other bundles (eg. FOSUserBundle)
+- queries/peer's returning proper isntances
+- creating proper Query instance when calling `SomeQuery::create()`
FOSUserBundle and AdminGenerator