for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ClientBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Class ContactType
* @ORM\Entity(repositoryClass="ClientBundle\Repository\ContactTypeRepository")
* @ORM\Table(name="contacttype")
*/
class ContactType
{
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
private $id;
* @ORM\Column(type="string", length=25, nullable=false)
private $name;
* Get id
*
* @return integer
public function getId()
return $this->id;
}
* Set name
* @param string $name
* @return ContactType
public function setName($name)
$this->name = $name;
return $this;
* Get name
* @return string
public function getName()
return $this->name;
public function __toString()
return (string) $this->getName();