Advertisement
Puzo

NK - CountryFixture Entity

Jun 12th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.30 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\AdminBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * App\AdminBundle\Entity\CountryFixture
  9.  *
  10.  * @ORM\Table(name="country_fixture")
  11.  * @ORM\Entity
  12.  */
  13. class CountryFixture
  14. {
  15.     /**
  16.      * @var integer $id
  17.      *
  18.      * @ORM\Column(name="id", type="integer", nullable=false)
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="IDENTITY")
  21.      */
  22.     private $id;
  23.  
  24.     /**
  25.      * @var integer $score
  26.      *
  27.      * @ORM\Column(name="score", type="integer", nullable=true)
  28.      */
  29.     private $score;
  30.  
  31.     /**
  32.      * @var Country
  33.      *
  34.      * @ORM\ManyToOne(targetEntity="Country")
  35.      * @ORM\JoinColumns({
  36.      *   @ORM\JoinColumn(name="country_id", referencedColumnName="id")
  37.      * })
  38.      */
  39.     private $country;
  40.  
  41.     /**
  42.      * @var CountryMatch
  43.      *
  44.      * @ORM\ManyToOne(targetEntity="CountryMatch")
  45.      * @ORM\JoinColumns({
  46.      *   @ORM\JoinColumn(name="country_match_id", referencedColumnName="id")
  47.      * })
  48.      */
  49.     private $countryMatch;
  50.  
  51.  
  52.  
  53.     /**
  54.      * Get id
  55.      *
  56.      * @return integer
  57.      */
  58.     public function getId()
  59.     {
  60.         return $this->id;
  61.     }
  62.  
  63.     /**
  64.      * Set score
  65.      *
  66.      * @param integer $score
  67.      */
  68.     public function setScore($score)
  69.     {
  70.         $this->score = $score;
  71.     }
  72.  
  73.     /**
  74.      * Get score
  75.      *
  76.      * @return integer
  77.      */
  78.     public function getScore()
  79.     {
  80.         return $this->score;
  81.     }
  82.  
  83.     /**
  84.      * Set country
  85.      *
  86.      * @param App\AdminBundle\Entity\Country $country
  87.      */
  88.     public function setCountry(\App\AdminBundle\Entity\Country $country)
  89.     {
  90.         $this->country = $country;
  91.     }
  92.  
  93.     /**
  94.      * Get country
  95.      *
  96.      * @return App\AdminBundle\Entity\Country
  97.      */
  98.     public function getCountry()
  99.     {
  100.         return $this->country;
  101.     }
  102.  
  103.     /**
  104.      * Set countryMatch
  105.      *
  106.      * @param App\AdminBundle\Entity\CountryMatch $countryMatch
  107.      */
  108.     public function setCountryMatch(\App\AdminBundle\Entity\CountryMatch $countryMatch)
  109.     {
  110.         $this->countryMatch = $countryMatch;
  111.     }
  112.  
  113.     /**
  114.      * Get countryMatch
  115.      *
  116.      * @return App\AdminBundle\Entity\CountryMatch
  117.      */
  118.     public function getCountryMatch()
  119.     {
  120.         return $this->countryMatch;
  121.     }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement