<?php
namespace Boab\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* TaxonomyRoute
*
* @ORM\Table(name="route_term")
* @ORM\Entity(repositoryClass="Boab\CmsBundle\Repository\RouteRepository")
*/
class TermRoute extends PostRoute
{
const DEFAULT_CONTROLLER = 'content_controller:categoryAction';
public function setPath($path)
{
return parent::setPath($path);
}
public function getController()
{
return self::DEFAULT_CONTROLLER;
}
public function setDefaults( array $defauts=[])
{
$defauts = [
'_controller' => self::DEFAULT_CONTROLLER,
'_title' => $this->getTitle(),
];
$this->addDefaults($defauts);
}
}