Skip to content

Commit

Permalink
Update twig-doctrine-loader.md
Browse files Browse the repository at this point in the history
  • Loading branch information
boekkooi committed Aug 8, 2014
1 parent be9d43d commit 834b53b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/twig-doctrine-loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ First we create the required models:
# My\Model\Template
namespace My\Model;
use Boekkooi\Bundle\TwigJackBundle\Model\TemplateInterface;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Model as ORMBehaviors;
Expand Down Expand Up @@ -88,14 +89,15 @@ class Template implements TemplateInterface
# My\Model\Template
namespace My\Model;
use Boekkooi\Bundle\TwigJackBundle\Model\TranslatableTemplateInterface;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Model as ORMBehaviors;
/**
* @ORM\Entity
* @ORM\Table(name="my_template_translation")
*/
class TemplateTranslation
class TemplateTranslation implements TranslatableTemplateInterface
{
use ORMBehaviors\Timestampable\Timestampable,
ORMBehaviors\Translatable\Translation;
Expand Down

0 comments on commit 834b53b

Please sign in to comment.