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="contacts")
*/
class Contact
{
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
private $id;
$id
* @ORM\Column(type="string")
private $name;
* @ORM\Embedded("Address")
private $address;
public function __construct($name)
$this->name = $name;
$this->address = new Address();
}
public function getName()
return $this->name;
public function getAddress(): Address
return $this->address;
public function setAddress(Address $address): void
$this->address = $address;