CompositeIdentEntity.php 423 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Symfony\Tests\Bridge\Doctrine\Form\Fixtures;
  3. /** @Entity */
  4. class CompositeIdentEntity
  5. {
  6. /** @Id @Column(type="integer") */
  7. protected $id1;
  8. /** @Id @Column(type="integer") */
  9. protected $id2;
  10. /** @Column(type="string") */
  11. public $name;
  12. public function __construct($id1, $id2, $name) {
  13. $this->id1 = $id1;
  14. $this->id2 = $id2;
  15. $this->name = $name;
  16. }
  17. }