for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* (c) FSi sp. z o.o. <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FSi\FixturesBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
* @ORM\Entity
* @ORM\Table(name="person")
class Person
{
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
private $id;
* @Assert\NotBlank
* @Assert\Email
* @ORM\Column(length=100)
private $email;
public function getId()
return $this->id;
}
* @param string $email
public function setEmail($email)
$this->email = $email;
* @return string
public function getEmail()
return $this->email;