Skip to content

Instantly share code, notes, and snippets.

View mikeemoo's full-sized avatar

Mikeemoo mikeemoo

  • Leeds, United Kingdom
View GitHub Profile
<?php
namespace Lowpress\CmsBundle\DataFixtures\ORM;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Lowpress\CmsBundle\Entity\Site;
class LoadSiteData extends AbstractFixture implements OrderedFixtureInterface
<?php
namespace Lowpress\ExampleBundle\Entity;
use Doctrine\ORM\Mapping as ORM,
Lowpress\CmsBundle as CMS;
/**
* @ORM\Entity
*/
<?php
namespace Lowpress\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class HtmlPage extends Path
<?php
namespace Lowpress\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="discr", type="string")
<?php
namespace Lowpress\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class Site
<?php
namespace Lowpress\ExampleBundle\Entity;
use Doctrine\ORM\Mapping as ORM,
Lowpress\CmsBundle as CMS;
class ContentPage extends CMS\Entity\HtmlPage
{
<?php
namespace Lowpress\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
class HtmlPage extends Path
{
/**
<?php
namespace Lowpress\ExampleBundle\Entity;
use Doctrine\ORM\Mapping as ORM,
Lowpress\CmsBundle as CMS;
class ContentPage extends CMS\Entity\HtmlPage
{
<?php
namespace Lowpress\ExampleBundle\Entity;
use Doctrine\ORM\Mapping as ORM,
Lowpress\CmsBundle as CMS;
class ContentPage extends CMS\Entity\HtmlPage
{
<?php
namespace Lowpress\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
class HtmlPage extends Path
{
/**