Advertisement
Guest User

Untitled

a guest
Oct 30th, 2012
210
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. use Doctrine\ORM\Mapping AS ORM;
  3. namespace Shopware\Models\Article;
  4.  
  5. /**
  6.  * @ORM\MappedSuperclass
  7.  */
  8. class MappedSuperclassBase
  9. {
  10.   /**
  11.    * @ORM\Column(type="integer", nullable=true)
  12.    */
  13.   private $mapped1;
  14.  
  15.   /**
  16.    * @ORM\Column(type="string", nullable=true)
  17.    */
  18.   private $mapped2;
  19. }
  20.  
  21. <?php
  22. use Doctrine\ORM\Mapping AS ORM;
  23.  
  24. /**
  25.  * @ORM\Entity
  26.  */
  27. class EntitySubClass extends MappedSuperclassBase
  28. {
  29.   /**
  30.    * @ORM\Column(type="string", nullable=true)
  31.    */
  32.   private $name;
  33. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement