summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
062185c)
Fix relations
Add preUpdate callback
Rapsys\BlogBundle\Entity\Keyword:
Rapsys\BlogBundle\Entity\Keyword:
- type: entity
- repositoryClass: Rapsys\BlogBundle\Repository\KeywordRepository
- table: keywords
+ type: entity
+ repositoryClass: Rapsys\BlogBundle\Repository\KeywordRepository
+ table: keywords
+ id:
- id:
- type: integer
- generator:
- strategy: AUTO
- options:
- unsigned: true
- fields:
- created:
- type: datetime
- updated:
- type: datetime
- manyToMany:
- articles:
- targetEntity: Rapsys\BlogBundle\Entity\Article
- mappedBy: keywords
- oneToMany:
- keyword_translations:
- targetEntity: Rapsys\BlogBundle\Entity\KeywordTranslation
- mappedBy: keyword
+ type: integer
+ generator:
+ strategy: AUTO
+ options:
+ unsigned: true
+ fields:
+ created:
+ type: datetime
+ updated:
+ type: datetime
+ manyToMany:
+ articles:
+ targetEntity: Rapsys\BlogBundle\Entity\Article
+ mappedBy: keywords
+ oneToMany:
+ keyword_translations:
+ targetEntity: Rapsys\BlogBundle\Entity\KeywordTranslation
+ mappedBy: keyword
+ lifecycleCallbacks:
+ preUpdate: ['preUpdate']