for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace A2lix\AutoFormBundle\Tests\Fixtures\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class Media
{
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
protected $id;
* @ORM\ManyToOne(targetEntity="Product", inversedBy="medias")
protected $product;
* @ORM\Column(nullable=true)
protected $url;
protected $description;
public function getId()
return $this->id;
}
public function getProduct()
return $this->product;
public function setProduct(Product $product)
$this->product = $product;
public function getUrl()
return $this->url;
public function setUrl($url)
$this->url = $url;
return $this;
public function getDescription()
return $this->description;
public function setDescription($description)
$this->description = $description;