1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- namespace Mapping\Fixture\Compatibility;
- /**
- * @Entity
- */
- class Article
- {
- /** @Id @GeneratedValue @Column(type="integer") */
- private $id;
- /**
- * @Column(name="title", type="string", length=128)
- */
- private $title;
- /**
- * @var datetime $created
- *
- * @gedmo:Timestampable(on="create")
- * @Column(name="created", type="date")
- */
- private $created;
- /**
- * @var datetime $updated
- *
- * @Column(name="updated", type="datetime")
- * @gedmo:Timestampable
- */
- private $updated;
- public function getId()
- {
- return $this->id;
- }
- public function setTitle($title)
- {
- $this->title = $title;
- }
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * Get created
- *
- * @return datetime $created
- */
- public function getCreated()
- {
- return $this->created;
- }
- public function setCreated(\DateTime $created)
- {
- $this->created = $created;
- }
- /**
- * Get updated
- *
- * @return datetime $updated
- */
- public function getUpdated()
- {
- return $this->updated;
- }
- public function setUpdated(\DateTime $updated)
- {
- $this->updated = $updated;
- }
- }
|