/**
  * @param Post $post
  * @param Category $category
  *
  * @return bool
  */
 public function render(Post $post, Category $category)
 {
     if ($post->getCategories()->contains($category)) {
         return TRUE;
     }
     return FALSE;
 }
 /**
  * {@inheritDoc}
  */
 public function getCategories()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCategories', array());
     return parent::getCategories();
 }