SHARE
TWEET

Untitled

a guest Mar 24th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /**
  4.  * @ORM\Entity
  5.  * @ORM\Table(name="TaxonomyItem")
  6.  */
  7. class TaxonomyItem
  8. {
  9.     /**
  10.      * @ORM\Column(type="integer")
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue(strategy="AUTO")
  13.      */
  14.     protected $id;
  15.  
  16.     /**
  17.      * @ORM\Column(type="string", length=100)
  18.      * @Assert\NotBlank()
  19.      */
  20.     protected $title;
  21.  
  22.     /**
  23.      * @Gedmo\Slug(fields={"title"}, updatable=false)
  24.      * @ORM\Column(length=128, unique=true)
  25.      */
  26.     protected $slug;
  27.  
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="TaxonomyCategory", inversedBy="taxonomyItems")
  30.      * @ORM\JoinColumn(name="taxonomy_category_id", referencedColumnName="id")
  31.      */
  32.     protected $taxonomyCategory;
  33.  
  34.     /**
  35.      * @ORM\OneToMany(targetEntity="TaxonomyField", mappedBy="taxonomyItem",cascade={"persist", "remove"})
  36.      */
  37.     protected $customFields;
  38. ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top