SingleIdentEntity.php 434 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Symfony\Tests\Bridge\Doctrine\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. {
  15. $this->id = $id;
  16. $this->name = $name;
  17. }
  18. }