1
0
mirror of synced 2025-01-19 06:51:40 +03:00
Kristopher Wilson 9d7aa9ba39 Adding failing test case for PaginationTest
The failure comes into play when an entity has an attribute named
differently from its corresponding column name.
2015-03-31 21:39:21 +01:00

41 lines
763 B
PHP

<?php
namespace Doctrine\Tests\Models\Pagination;
/**
* Company
*
* @package Doctrine\Tests\Models\Pagination
*
* @author Bill Schaller
* @Entity
* @Table(name="pagination_company")
*/
class Company
{
/**
* @Id @Column(type="integer")
* @GeneratedValue
*/
public $id;
/**
* @Column(type="string")
*/
public $name;
/**
* @Column(type="string", name="jurisdiction_code", nullable=true)
*/
public $jurisdiction;
/**
* @OneToOne(targetEntity="Logo", mappedBy="company", cascade={"persist"}, orphanRemoval=true)
*/
public $logo;
/**
* @OneToMany(targetEntity="Department", mappedBy="company", cascade={"persist"}, orphanRemoval=true)
*/
public $departments;
}