Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok is solve it. In my module.config.php I had to add this:</p> <pre><code>'doctrine' =&gt; array( 'driver' =&gt; array( // overriding zfc-user-doctrine-orm's config 'zfcuser_entity' =&gt; array( 'class' =&gt; 'Doctrine\ORM\Mapping\Driver\AnnotationDriver', 'paths' =&gt; __DIR__ . '/../src/User/Entity', ), 'orm_default' =&gt; array( 'drivers' =&gt; array( 'User\Entity' =&gt; 'zfcuser_entity', ), ), ), ), 'zfcuser' =&gt; array( // telling ZfcUser to use our own class 'user_entity_class' =&gt; 'User\Entity\User', // telling ZfcUserDoctrineORM to skip the entities it defines 'enable_default_entities' =&gt; false, ), </code></pre> <p>And then extend ZfcUser\Entity\User with mine:</p> <pre><code>namespace User\Entity; use ZfcUser\Entity\User as ZfcUser; class User extends ZfcUser { /** * @var string */ protected $firstname; /** * @var string */ protected $lastname; /** * Get firstname. * * @return string */ public function getFirstname() { return $this-&gt;firstname; } /** * Set firstname. * * @param string $firstname * @return UserInterface */ public function setFirstname($firstname) { $this-&gt;firstname = $firstname; return $this; } /** * Get lastname. * * @return string */ public function getLastname() { return $this-&gt;lastname; } /** * Set lastname. * * @param string $lastname * @return UserInterface */ public function setLastname($lastname) { $this-&gt;lastname = $lastname; return $this; } } </code></pre> <p>All done thx to this tutorial <a href="http://circlical.com/blog/2013/4/1/l5wftnf3p7oks5561bohmb9vkpasp6" rel="nofollow">http://circlical.com/blog/2013/4/1/l5wftnf3p7oks5561bohmb9vkpasp6</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload