### Step 1: Download LatchBundle using composer

### Step 2: Enable the bundle

// src/Acme/UserBundle/Entity/User.php namespace Acme\UserBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="user") */ class User extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /* Start of the new field */ /** * @var string $latch * * @ORM\Column(name="latch", type="string", length=255, nullable=true) */ private $latch; /** * Set latch * * @param string $latch */ public function setLatch($latch) { $this->latch = $latch; } /** * Get latch * * @return string */ public function getlatch() { return $this->latch; } /* End of the new field */ public function __construct() { parent::__construct(); // your own logic } }