2015-03-19 21:59:15 -04:00
|
|
|
<?php
|
|
|
|
namespace Doctrine\Tests\Models\Pagination;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Company
|
|
|
|
*
|
|
|
|
* @package Doctrine\Tests\Models\Pagination
|
|
|
|
*
|
2015-03-20 12:28:55 -04:00
|
|
|
* @author Bill Schaller
|
2015-03-19 21:59:15 -04:00
|
|
|
* @Entity
|
|
|
|
* @Table(name="pagination_company")
|
|
|
|
*/
|
|
|
|
class Company
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Id @Column(type="integer")
|
|
|
|
* @GeneratedValue
|
|
|
|
*/
|
|
|
|
public $id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Column(type="string")
|
|
|
|
*/
|
|
|
|
public $name;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @OneToOne(targetEntity="Logo", mappedBy="company", cascade={"persist"}, orphanRemoval=true)
|
|
|
|
*/
|
|
|
|
public $logo;
|
2015-03-25 22:28:32 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @OneToMany(targetEntity="Department", mappedBy="company", cascade={"persist"}, orphanRemoval=true)
|
|
|
|
*/
|
|
|
|
public $departments;
|
2015-03-19 21:59:15 -04:00
|
|
|
}
|