Skip to content

Instantly share code, notes, and snippets.

@mikeemoo
Created May 29, 2012 10:13
Show Gist options
  • Save mikeemoo/2823886 to your computer and use it in GitHub Desktop.
Save mikeemoo/2823886 to your computer and use it in GitHub Desktop.
Path
<?php
namespace Lowpress\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM,
class Path
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", length="255")
*/
private $url;
/**
* @ORM\ManyToOne(targetEntity="Site", inversedBy="pages")
* @ORM\JoinColumn(name="site_id", referencedColumnName="id")
*/
private $site;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment