lib/composer/RoutingBundle/src/VisualMedia/RoutingBundle/Entity/BaseRoute.php line 27

Open in your IDE?
  1. <?php
  2. /**
  3. * Base Route
  4. *
  5. * @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
  6. */
  7. namespace VisualMedia\RoutingBundle\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use VisualMedia\LisaBundle\Component\Interfaces\EntityInterface;
  10. use VisualMedia\LisaBundle\Traits\BlameableTrait;
  11. use VisualMedia\LisaBundle\Traits\AutoIdTrait;
  12. use VisualMedia\LisaBundle\Traits\TimestampableTrait;
  13. use VisualMedia\RoutingBundle\Model\BaseRouteModel;
  14. /**
  15. * Base Route
  16. *
  17. * @ORM\Entity(repositoryClass="VisualMedia\RoutingBundle\Manager\BaseRouteManager")
  18. * @ORM\Table(name="route", indexes={ @ORM\Index(name="route_search_index", columns={ "url" }) })
  19. *
  20. * @ORM\InheritanceType("SINGLE_TABLE")
  21. * @ORM\DiscriminatorColumn(name="discriminator", type="string")
  22. */
  23. class BaseRoute extends BaseRouteModel implements EntityInterface
  24. {
  25. use BlameableTrait;
  26. use AutoIdTrait;
  27. use TimestampableTrait;
  28. /**
  29. * @ORM\Column(name="name", type="string", length=128, nullable=false)
  30. */
  31. public $name;
  32. /**
  33. * @ORM\Column(name="url", type="string", length=128, nullable=false)
  34. */
  35. public $url;
  36. /**
  37. * @ORM\Column(name="active", type="boolean", nullable=false, options={ "default": 1 })
  38. */
  39. public $active = true;
  40. /**
  41. * @ORM\Column(name="default_entity_key", type="text", nullable=false, options={ "default": "" })
  42. */
  43. //public $defaultEntityKey = "";
  44. /**
  45. * @ORM\Column(name="controller", type="string", length=255, nullable=true)
  46. */
  47. public $controller;
  48. /**
  49. * @ORM\Column(name="parameters", type="text", nullable=true)
  50. */
  51. public $parameters;
  52. /**
  53. * @ORM\Column(name="entity_key", type="string", length=255, nullable=true)
  54. */
  55. public $entityKey;
  56. /**
  57. * @ORM\ManyToOne(targetEntity="VisualMedia\TranslationBundle\Entity\BaseChannel")
  58. * @ORM\JoinColumn(name="channel_id", referencedColumnName="id", onDelete="CASCADE")
  59. */
  60. public $channel;
  61. /**
  62. * @ORM\ManyToOne(targetEntity="VisualMedia\TranslationBundle\Entity\BaseLocale")
  63. * @ORM\JoinColumn(name="locale_id", referencedColumnName="id", onDelete="CASCADE")
  64. */
  65. public $locale;
  66. }