for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Foundry\Tests\Fixtures\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="bars")
*/
class Bar
{
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
private $id;
$id
* @ORM\ManyToOne(targetEntity=Foo::class, inversedBy="oneToMany")
private $foo;
public function getFoo(): ?Foo
return $this->foo;
}
public function setFoo(?Foo $foo): self
$this->foo = $foo;
return $this;