9d7aa9ba39
The failure comes into play when an entity has an attribute named differently from its corresponding column name.
41 lines
763 B
PHP
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;
|
|
}
|