21 lines
457 B
PHP
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());
|
|
}
|
|
}
|