2011-12-14 22:28:01 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\DDC964;
|
|
|
|
|
|
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Entity
|
2012-04-14 09:10:44 +04:00
|
|
|
* @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
|
|
|
|
* )
|
|
|
|
* )
|
|
|
|
* })
|
2011-12-14 22:28:01 +04:00
|
|
|
*/
|
|
|
|
class DDC964Guest extends DDC964User
|
|
|
|
{
|
2012-02-02 06:57:39 +04:00
|
|
|
public static function loadMetadata($metadata)
|
|
|
|
{
|
2012-04-14 09:10:44 +04:00
|
|
|
$metadata->setAttributeOverride('id', array(
|
|
|
|
'columnName' => 'guest_id',
|
|
|
|
'type' => 'integer',
|
|
|
|
'length' => 140,
|
|
|
|
));
|
2011-12-14 22:28:01 +04:00
|
|
|
|
2012-04-14 09:10:44 +04:00
|
|
|
$metadata->setAttributeOverride('name',array(
|
|
|
|
'columnName' => 'guest_name',
|
|
|
|
'nullable' => false,
|
|
|
|
'unique' => true,
|
|
|
|
'length' => 240,
|
|
|
|
));
|
2012-02-02 06:57:39 +04:00
|
|
|
}
|
2011-12-14 22:28:01 +04:00
|
|
|
}
|