for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the LoopBackApiBundle package.
*
* (c) Théo FIDRY <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fidry\LoopBackApiBundle\Tests\Functional\Bundle\TestBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Dunglas\ApiBundle\Annotation\Iri;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* Related dummy.
* @author Théo FIDRY <[email protected]>
* @ORM\Entity
* @Iri("https://schema.org/Product")
class RelatedDummy
{
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
private $id;
* @var int The age.
* @ORM\Column(type="integer", nullable=true)
private $age;
* @ORM\Column
* @Groups({"barcelona", "chicago"})
protected $symfony = 'symfony';
* @var AnotherDummy
* @ORM\ManyToOne(targetEntity="AnotherDummy")
public $anotherDummy;
* @return mixed
public function getId()
return $this->id;
}
* @return int
public function getAge()
return $this->age;
* @param $symfony
public function setSymfony($symfony)
$this->symfony = $symfony;
* @return string
public function getSymfony()
return $this->symfony;