123456789101112131415161718192021222324252627 |
- <?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;
- }
- }
|