1
0
mirror of synced 2025-01-10 19:17:10 +03:00
doctrine2/tests/Doctrine/Tests/Models/DDC2775/Authorization.php
2013-11-04 12:40:51 +01:00

41 lines
622 B
PHP

<?php
namespace Doctrine\Tests\Models\DDC2775;
/**
* @Entity
*/
class Authorization
{
/**
* @Id @Column(type="integer")
* @GeneratedValue
*/
private $id;
/**
* @ManyToOne(targetEntity="User", inversedBy="authorizations")
*/
private $user;
/**
* @ManyToOne(targetEntity="Role", inversedBy="authorizations")
*/
private $role;
public function getId()
{
return $this->id;
}
public function setUser(User $user)
{
$this->user = $user;
}
public function setRole(Role $role)
{
$this->role = $role;
}
}