Skip to content

Instantly share code, notes, and snippets.

@merk
Created March 28, 2012 00:14
Show Gist options
  • Save merk/2221806 to your computer and use it in GitHub Desktop.
Save merk/2221806 to your computer and use it in GitHub Desktop.
<?php
/**
* @ORM\Entity
* @ORM\Table(name="capability")
*/
class Capability
{
/**
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Id
* @var integer $id
*/
protected $id;
/**
* @ORM\Column(type="string")
* @var string $description
*/
protected $description;
<?php
/**
* @ORM\Entity
* @ORM\Table(name="profile")
* @Serialize\ExclusionPolicy("all")
* @Serialize\XmlRoot("profile")
*/
class Profile extends BaseProfile
{
/**
* @ORM\ManyToMany(targetEntity="Capability")
* @Serialize\Expose
* @Serialize\XmlList(entry="capability")
* @var Collection
*/
protected $capabilities;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment