Skip to content

Instantly share code, notes, and snippets.

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