1
0
mirror of synced 2025-01-10 11:07:10 +03:00
doctrine2/tests/Doctrine/Tests/Models/DDC2775/Authorization.php

26 lines
418 B
PHP
Raw Normal View History

2013-11-04 15:40:51 +04:00
<?php
namespace Doctrine\Tests\Models\DDC2775;
/**
* @Entity @Table(name="authorizations")
2013-11-04 15:40:51 +04:00
*/
class Authorization
{
/**
* @Id @Column(type="integer")
* @GeneratedValue
*/
2013-12-14 22:57:53 +04:00
public $id;
2013-11-04 15:40:51 +04:00
/**
* @ManyToOne(targetEntity="User", inversedBy="authorizations")
*/
2013-12-14 22:57:53 +04:00
public $user;
2013-11-04 15:40:51 +04:00
/**
* @ManyToOne(targetEntity="Role", inversedBy="authorizations")
*/
2013-12-14 22:57:53 +04:00
public $role;
2013-11-04 15:40:51 +04:00
}