SingleIdentEntity.php 435 B

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