123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace Timestampable\Fixture;
- use Gedmo\Timestampable\Traits\TimestampableEntity;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- */
- class UsingTrait
- {
- /**
- * Hook timestampable behavior
- * updates createdAt, updatedAt fields
- */
- use TimestampableEntity;
- /**
- * @ORM\Id
- * @ORM\GeneratedValue
- * @ORM\Column(type="integer")
- */
- private $id;
- /**
- * @ORM\Column(length=128)
- */
- private $title;
- public function getId()
- {
- return $this->id;
- }
- public function setTitle($title)
- {
- $this->title = $title;
- }
- public function getTitle()
- {
- return $this->title;
- }
- }
|