1
0
mirror of synced 2025-01-31 20:41:44 +03:00

36 lines
649 B
PHP
Raw Normal View History

<?php
namespace Doctrine\Tests\Models\Pagination;
/**
* Company
*
* @package Doctrine\Tests\Models\Pagination
*
2015-03-20 12:28:55 -04:00
* @author Bill Schaller
* @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;
/**
* @OneToMany(targetEntity="Department", mappedBy="company", cascade={"persist"}, orphanRemoval=true)
*/
public $departments;
}