Skip to content

Instantly share code, notes, and snippets.

@mikeemoo
Created May 29, 2012 15:27
Show Gist options
  • Select an option

  • Save mikeemoo/2829056 to your computer and use it in GitHub Desktop.

Select an option

Save mikeemoo/2829056 to your computer and use it in GitHub Desktop.
Path
<?php
namespace Lowpress\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="discr", type="string")
* @ORM\DiscriminatorMap({"Lowpress\CmsBundle\Entity\Path" = "Lowpress\CmsBundle\Entity\Path",
* "Lowpress\CmsBundle\Entity\HtmlPage" = "Lowpress\CmsBundle\Entity\HtmlPage",
* "Lowpress\ExampleBundle\Entity\ContentPage" = "Lowpress\ExampleBundle\Entity\ContentPage"})
*/
class Path
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment