Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-ALPHA4
-
Fix Version/s: 2.0-BETA1
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
Although the annotation driver does, the YAML-Driver does not.
Any idea how to access the ancestor's yamlfile? I'd probably have to get an instance of the entity first, perform reflection on it, find the superclass, get it's yaml file (if there is any) and repeat this until we've reached the top of the inheritance hierarchy...
I dont really understand, you don't need @hasLifecycleCallbacks, you just define a section "lifecycleCallbacks" in your yaml file.
see the documentation o rtests/Doctrine/Tests/ORM/Mapping/Driver for an example yaml file. It should work out of the box.