SingleIdentEntity.php 323 B

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