commit 91f6126feb79813c019365713ac55d13ea446814 parent 146c7116d69c6e672d1f3e05c3b776fc1d6ed56d Author: Timo A. Hummel <felicitus@felicitus.org> Date: Sat, 7 Nov 2015 00:35:27 +0100 Re-added missing base entity Diffstat:
A | src/PartKeepr/CoreBundle/Entity/BaseEntity.php | | | 26 | ++++++++++++++++++++++++++ |
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/PartKeepr/CoreBundle/Entity/BaseEntity.php b/src/PartKeepr/CoreBundle/Entity/BaseEntity.php @@ -0,0 +1,25 @@ +<?php +namespace PartKeepr\CoreBundle\Entity; + +use Doctrine\ORM\Mapping as ORM; + +/** @ORM\MappedSuperclass */ +abstract class BaseEntity { + /** + * @ORM\Id + * @ORM\Column(type="integer") + * @ORM\GeneratedValue(strategy="AUTO") + * @var integer + */ + private $id; + + /** + * Returns the ID of this object. + * @param none + * @return int The ID of this object + */ + public function getId () { + return $this->id; + } + +}+ \ No newline at end of file