Now fetching news from the database
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
KekRozsak\FrontBundle\Entity\News:
|
||||
type: entity
|
||||
table: news
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
created_at:
|
||||
type: datetime
|
||||
nullable: false
|
||||
updated_at:
|
||||
type: datetime
|
||||
nullable: true
|
||||
default: null
|
||||
update_reason:
|
||||
type: text
|
||||
nullable: true
|
||||
default: null
|
||||
title:
|
||||
type: string(100)
|
||||
nullable: false
|
||||
slug:
|
||||
type: string(100)
|
||||
nullable: false
|
||||
unique: true
|
||||
text:
|
||||
type: text
|
||||
nullable: false
|
||||
manyToOne:
|
||||
created_by:
|
||||
targetEntity: User
|
||||
nullable: false
|
||||
inversedBy: news
|
||||
updated_by:
|
||||
targetEntity: User
|
||||
nullable: true
|
||||
default: null
|
@@ -5,3 +5,9 @@ services:
|
||||
# kek_rozsak_front.example:
|
||||
# class: %kek_rozsak_front.example.class%
|
||||
# arguments: [@service_id, "plain_value", %parameter%]
|
||||
kek_rozsak_front.twig_extension.news:
|
||||
class: KekRozsak\FrontBundle\Twig\NewsExtension
|
||||
arguments:
|
||||
doctrine: @doctrine
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
Reference in New Issue
Block a user