src/CasinoBundle/Entity/CasinoGeoScore.php line 36

Open in your IDE?
  1. <?php
  2. namespace App\CasinoBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\CmsBundle\Entity\IdTrait;
  5. /**
  6.  * CasinoGeoScore
  7.  *
  8.  * @ORM\Table(
  9.  *     name="casino_geo_score",
  10.  *     indexes={
  11.  *         @ORM\Index(
  12.  *              name="casino_casinogeoscore_index",
  13.  *              columns={"casino_id"}
  14.  *         ),
  15.  *         @ORM\Index(
  16.  *              name="country_casinogeoscore_index",
  17.  *              columns={"country_id"}
  18.  *         ),
  19.  *         @ORM\Index(
  20.  *              name="score_casinogeoscore_index",
  21.  *              columns={"score"}
  22.  *         )
  23.  *     },
  24.  *     uniqueConstraints={
  25.  *         @ORM\UniqueConstraint(
  26.  *              name="casinogeoscore_uindex",
  27.  *              columns={"casino_id","country_id"}
  28.  *          )
  29.  *     }
  30.  * )
  31.  * @ORM\Entity(repositoryClass="App\CasinoBundle\Repository\CasinoGeoScoreRepository")
  32.  * @ORM\HasLifecycleCallbacks()
  33.  */
  34. class CasinoGeoScore
  35. {
  36.     use IdTraitCasinoTraitCountryTraitScoreTrait;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="App\CasinoBundle\Entity\Casino", inversedBy="geoScores")
  39.      * @ORM\JoinColumn(name="casino_id", referencedColumnName="id", nullable=false)
  40.      */
  41.     private $casino;
  42.     public function __construct()
  43.     {
  44.     }
  45. }