deblan.tv/vendor/trinity/src/Trinity/Bundle/NotificationBundle/Model/Template.php

21 lines
457 B
PHP
Raw Normal View History

2015-03-02 21:57:49 +01:00
<?php
namespace Trinity\Bundle\NotificationBundle\Model;
use Trinity\Bundle\NotificationBundle\Model\om\BaseTemplate;
class Template extends BaseTemplate
{
public function __toString()
{
return (string) $this->reference;
}
2015-09-14 14:53:34 +02:00
public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
{
parent::copyInto($copyObj, $deepCopy, $makeNew);
$copyObj->setReference('copy_'.$this->getReference());
}
2015-03-02 21:57:49 +01:00
}