27 lines
519 B
PHP
27 lines
519 B
PHP
<?php
|
|
|
|
namespace Symfony\Tests\Bridge\Doctrine\Fixtures;
|
|
|
|
use Doctrine\ORM\Mapping\Id;
|
|
use Doctrine\ORM\Mapping\Column;
|
|
use Doctrine\ORM\Mapping\Entity;
|
|
|
|
/** @Entity */
|
|
class CompositeStringIdentEntity
|
|
{
|
|
/** @Id @Column(type="string") */
|
|
protected $id1;
|
|
|
|
/** @Id @Column(type="string") */
|
|
protected $id2;
|
|
|
|
/** @Column(type="string") */
|
|
public $name;
|
|
|
|
public function __construct($id1, $id2, $name) {
|
|
$this->id1 = $id1;
|
|
$this->id2 = $id2;
|
|
$this->name = $name;
|
|
}
|
|
}
|