1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace Symfony\Bridge\Doctrine\Tests\Fixtures;
- use Doctrine\ORM\Mapping\Column;
- use Doctrine\ORM\Mapping\Entity;
- use Doctrine\ORM\Mapping\Id;
- class CompositeStringIdEntity
- {
-
- protected $id1;
-
- protected $id2;
-
- public $name;
- public function __construct($id1, $id2, $name)
- {
- $this->id1 = $id1;
- $this->id2 = $id2;
- $this->name = $name;
- }
- public function __toString()
- {
- return $this->name;
- }
- }
|