1
0
mirror of synced 2025-02-03 22:09:26 +03:00

44 lines
1007 B
PHP
Raw Normal View History

2011-09-07 18:29:43 -03:00
<?php
namespace Doctrine\Tests\Models\DDC869;
/**
* @MappedSuperclass(repositoryClass = "Doctrine\Tests\Models\DDC869\DDC869PaymentRepository")
*/
class DDC869Payment
{
/**
2011-12-19 22:56:19 +01:00
* @Id
* @Column(type="integer")
2011-09-07 18:29:43 -03:00
* @GeneratedValue
*/
2011-09-08 12:55:55 -03:00
protected $id;
2011-09-07 18:29:43 -03:00
/** @Column(type="float") */
2011-09-07 18:29:43 -03:00
protected $value;
2011-12-19 22:56:19 +01:00
2011-09-08 13:17:53 -03:00
public static function loadMetadata(\Doctrine\ORM\Mapping\ClassMetadataInfo $metadata)
{
$metadata->mapField(
[
2011-09-08 13:17:53 -03:00
'id' => true,
'fieldName' => 'id',
'type' => 'integer',
'columnName' => 'id',
]
);
$metadata->mapField(
[
2011-09-08 13:17:53 -03:00
'fieldName' => 'value',
'type' => 'float',
]
);
$metadata->isMappedSuperclass = true;
$metadata->setCustomRepositoryClass(DDC869PaymentRepository::class);
2011-09-08 13:17:53 -03:00
$metadata->setIdGeneratorType(\Doctrine\ORM\Mapping\ClassMetadataInfo::GENERATOR_TYPE_AUTO);
}
2011-09-07 18:29:43 -03:00
}