Skip to content

Instantly share code, notes, and snippets.

@dator-zz
Created December 1, 2010 10:19
Show Gist options
  • Save dator-zz/723292 to your computer and use it in GitHub Desktop.
Save dator-zz/723292 to your computer and use it in GitHub Desktop.
<?php
namespace Application\DoctrineUserBundle\Entity;
use Bundle\DoctrineUserBundle\Entity\User as BaseUser;
/**
* @orm:Entity(repositoryClass="Application\DoctrineUserBundle\Entity\UserRepository")
* @orm:HasLifecycleCallbacks
*/
class User extends BaseUser
{
/**
* @orm:ManyToOne(targetEntity="Dashboard", inversedBy="users")
* @orm:JoinColumn(name="dashboard_id", referencedColumnName="id", nullable=false)
*
* @var MyBundle\Entity\Dashboard
*/
protected $dashboard;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment