ff75a3ad49
Manual merge testcase from #1351
31 lines
503 B
PHP
31 lines
503 B
PHP
<?php
|
|
namespace Doctrine\Tests\Models\Pagination;
|
|
|
|
/**
|
|
* Department
|
|
*
|
|
* @package Doctrine\Tests\Models\Pagination
|
|
*
|
|
* @author Bill Schaller
|
|
* @Entity
|
|
* @Table(name="pagination_department")
|
|
*/
|
|
class Department
|
|
{
|
|
/**
|
|
* @Id @Column(type="integer")
|
|
* @GeneratedValue
|
|
*/
|
|
public $id;
|
|
|
|
/**
|
|
* @Column(type="string")
|
|
*/
|
|
public $name;
|
|
|
|
/**
|
|
* @ManyToOne(targetEntity="Company", inversedBy="departments", cascade={"persist"})
|
|
*/
|
|
public $company;
|
|
}
|