deblan.tv/vendor/trinity/src/Trinity/Bundle/NotificationBundle/Model/Template.php
2015-09-14 14:53:34 +02:00

21 lines
457 B
PHP

<?php
namespace Trinity\Bundle\NotificationBundle\Model;
use Trinity\Bundle\NotificationBundle\Model\om\BaseTemplate;
class Template extends BaseTemplate
{
public function __toString()
{
return (string) $this->reference;
}
public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
{
parent::copyInto($copyObj, $deepCopy, $makeNew);
$copyObj->setReference('copy_'.$this->getReference());
}
}