Step-1 : install zf2 developer tool php composer.pharrequire zendframework/zend-developer-tools:dev-master Step-2: add in application config/application.config.php 'modules' => array( 'ZendDeveloperTools', 'DoctrineModule', 'DoctrineORMModule', 'Application', ), Step-3: Create your entity module/Application/src/Application/Entity/User namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; /** @ORM\Entity */ class User { /** * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Column(type="integer") */ protected $id; /** @ORM\Column(type="string") */ protected $fullName; // getters/setters } Step-4: do mapping in module/Application/config/module.config.php 'doctrine' => array( 'driver' => array( 'application_entities' => array( 'class' =>'Doctrine\ORM...