1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests/Doctrine/Tests/Models/DDC964/DDC964Guest.php
2012-04-21 01:43:18 -03:00

44 lines
1.1 KiB
PHP

<?php
namespace Doctrine\Tests\Models\DDC964;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @Entity
* @AttributeOverrides({
* @AttributeOverride(name="id",
* column=@Column(
* name = "guest_id",
* type = "integer",
length = 140
* )
* ),
* @AttributeOverride(name="name",
* column=@Column(
* name = "guest_name",
* nullable = false,
* unique = true,
length = 240
* )
* )
* })
*/
class DDC964Guest extends DDC964User
{
public static function loadMetadata($metadata)
{
$metadata->setAttributeOverride('id', array(
'columnName' => 'guest_id',
'type' => 'integer',
'length' => 140,
));
$metadata->setAttributeOverride('name',array(
'columnName' => 'guest_name',
'nullable' => false,
'unique' => true,
'length' => 240,
));
}
}