for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the AutoFormBundle package.
*
* (c) David ALLIX <http://a2lix.fr>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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(): ?int
return $this->id;
}
public function getProduct(): Product
return $this->product;
public function setProduct(Product $product): self
$this->product = $product;
return $this;
public function getUrl(): ?string
return $this->url;
public function setUrl(?string $url): self
$this->url = $url;
public function getDescription(): ?string
return $this->description;
public function setDescription(?string $description): self
$this->description = $description;