Made forum posting possible.
It has some limitations, though, as ForumTopic.last_post and ForumTopicGroup.last_post is not updated automagically...
This commit is contained in:
@@ -40,6 +40,12 @@ KekRozsak\FrontBundle\Entity\ForumTopic:
|
||||
targetEntity: ForumTopicGroup
|
||||
inversedBy: topics
|
||||
nullable: false
|
||||
oneToOne:
|
||||
last_post:
|
||||
targetEntity: ForumPost
|
||||
nullable: true
|
||||
default: null
|
||||
cascade: [ persist ]
|
||||
uniqueConstraint:
|
||||
uniqueSlugByGroup:
|
||||
columns: [ topic_group, slug ]
|
||||
|
@@ -32,6 +32,12 @@ KekRozsak\FrontBundle\Entity\ForumTopicGroup:
|
||||
targetEntity: User
|
||||
nullable: true
|
||||
default: null
|
||||
oneToOne:
|
||||
last_post:
|
||||
targetEntity: ForumPost
|
||||
nullable: true
|
||||
default: null
|
||||
cascade: [ persist ]
|
||||
oneToMany:
|
||||
topics:
|
||||
targetEntity: ForumTopic
|
||||
|
Reference in New Issue
Block a user