Added very basic forum functionality
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
KekRozsak\FrontBundle\Entity\ForumPost:
|
||||
type: entity
|
||||
table: forum_posts
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
created_at:
|
||||
type: datetime
|
||||
nullable: false
|
||||
updated_at:
|
||||
type: datetime
|
||||
nullable: true
|
||||
update_reason:
|
||||
type: string
|
||||
nullable: true
|
||||
text:
|
||||
type: text
|
||||
nullable: false
|
||||
manyToOne:
|
||||
created_by:
|
||||
targetEntity: User
|
||||
inversedBy: forum_posts
|
||||
nullable: false
|
||||
updated_by:
|
||||
targetEntity: User
|
||||
nullable: true
|
||||
default: null
|
||||
topic:
|
||||
targetEntity: ForumTopic
|
||||
inversedBy: posts
|
@@ -23,6 +23,10 @@ KekRozsak\FrontBundle\Entity\ForumTopic:
|
||||
update_reason:
|
||||
type: text
|
||||
nullable: true
|
||||
oneToMany:
|
||||
posts:
|
||||
targetEntity: ForumPost
|
||||
mappedBy: topic
|
||||
manyToOne:
|
||||
created_by:
|
||||
targetEntity: User
|
||||
|
@@ -21,6 +21,15 @@ KekRozsak\FrontBundle\Entity\User:
|
||||
display_name:
|
||||
type: string(50)
|
||||
nullable: false
|
||||
oneToMany:
|
||||
articles:
|
||||
targetEntity: Article
|
||||
mappedBy: created_by
|
||||
fetch: EXTRA_LAZY
|
||||
forum_posts:
|
||||
targetEntity: ForumPost
|
||||
mappedBy: created_by
|
||||
fetch: EXTRA_LAZY
|
||||
manyToMany:
|
||||
roles:
|
||||
targetEntity: Role
|
||||
|
Reference in New Issue
Block a user