Overview

Namespaces

  • Jity
    • HomepageBundle
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
        • Compiler
        • Service
          • Controller
      • Doctrine
        • Extension
          • DBAL
            • Types
      • Entity
      • EventListener
      • Form
        • Extension
      • Tests
        • Controller
      • Twig
        • Extension
  • PHP

Classes

  • AbstractPage
  • AbstractPageTag
  • Article
  • Category
  • Comment
  • Contact
  • Group
  • NavigationContainer
  • NavigationResource
  • Page
  • Section
  • Service
  • Sidebar
  • SidebarSection
  • Tag
  • User
  • UserRepository
  • Overview
  • Namespace
  • Class
  • Tree

Class Article

Article

Article entiy.

Jity\HomepageBundle\Entity\NavigationResource
Extended by Jity\HomepageBundle\Entity\AbstractPage
Extended by Jity\HomepageBundle\Entity\Article
Namespace: Jity\HomepageBundle\Entity
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Uses: Jity\HomepageBundle\Entity\AbstractPage
ORM\Entity
ORM\Table(: name="article" )
Located at Jity/HomepageBundle/Entity/Article.php
Methods summary
public
# __construct( )

__construct

__construct

Initalize a new Article instance.

Overrides

Jity\HomepageBundle\Entity\AbstractPage::__construct()
public Jity\HomepageBundle\Entity\Article
# addComment( Jity\HomepageBundle\Entity\Comment $comment )

addComment

addComment

Add a comment to the entiy.

Parameters

$comment
Jity\HomepageBundle\Entity\Comment
$comment Comment to add

Returns

Jity\HomepageBundle\Entity\Article
public Jity\HomepageBundle\Entity\Article
# removeComment( Jity\HomepageBundle\Entity\Comment $comment )

removeComment

removeComment

Remove a assigned comment of the entiy.

Parameters

$comment
Jity\HomepageBundle\Entity\Comment
$comment

Returns

Jity\HomepageBundle\Entity\Article
public Doctrine\Common\Collections\Collection
# getComments( )

getComments

getComments

Get all assigned comments of the entiy.

Returns

Doctrine\Common\Collections\Collection
Methods inherited from Jity\HomepageBundle\Entity\AbstractPage
addTag(), getAuthor(), getCategory(), getContent(), getCreatedAt(), getDescription(), getIcon(), getId(), getLastAuthor(), getNavigationContainer(), getService(), getSidebar(), getSlug(), getTags(), getTitle(), getType(), getUpdatedAt(), removeTag(), setAuthor(), setCategory(), setContent(), setCreatedAt(), setIcon(), setLastAuthor(), setNavigationContainer(), setService(), setSidebar(), setSlug(), setTitle(), setUpdatedAt()
Methods inherited from Jity\HomepageBundle\Entity\NavigationResource
addContainer(), getContainers(), removeContainer()
Properties summary
protected mixed $comments
#

ORM\OneToMany(targetEntity="Comment",

mappedBy="article", cascade={"persist", "remove"})
Properties inherited from Jity\HomepageBundle\Entity\AbstractPage
$abstractPageTag, $author, $category, $content, $icon, $id, $lastAuthor, $navigationContainer, $service, $sidebar, $slug, $title
Properties inherited from Jity\HomepageBundle\Entity\NavigationResource
$containers
API documentation generated by ApiGen 2.8.0