Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/03/2013, 07:24
wilmer30
 
Fecha de Ingreso: enero-2010
Mensajes: 491
Antigüedad: 14 años, 3 meses
Puntos: 12
Respuesta: Doctrine 2.1.7 y zf 1.12

Gracias masterpuppet, lo que hice fue crear una carpeta Entities al nivel de la carpeta Doctrine y bin, dentro de esta agregué User.php con el siguiente código:
Código PHP:
Ver original
  1. namespace Entities;
  2.  
  3. use Doctrine\ORM\Mapping as ORM;
  4.  
  5. /**
  6.  * Entities\User
  7.  *
  8.  * @Table(name="user")
  9.  * @Entity(repositoryClass="Repository\User")
  10.  */
  11. class User
  12. {
  13.     /**
  14.      * @var integer $id
  15.      *
  16.      * @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  17.      * @Id
  18.      * @GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.  
  22.     /**
  23.      * @var string $userName
  24.      *
  25.      * @Column(name="userName", type="string", length=45, precision=0, scale=0, nullable=false, unique=false)
  26.      */
  27.     private $userName;
  28.  
  29.     /**
  30.      * @var string $email
  31.      *
  32.      * @Column(name="email", type="string", length=45, precision=0, scale=0, nullable=false, unique=false)
  33.      */
  34.     private $email;
  35.  
  36.     /**
  37.      * @var text $bio
  38.      *
  39.      * @Column(name="bio", type="text", precision=0, scale=0, nullable=true, unique=false)
  40.      */
  41.     private $bio;
  42.  
  43.  
  44.     /**
  45.      * Get id
  46.      *
  47.      * @return integer
  48.      */
  49.     public function getId()
  50.     {
  51.         return $this->id;
  52.     }
  53.  
  54.     /**
  55.      * Set userName
  56.      *
  57.      * @param string $userName
  58.      */
  59.     public function setUserName($userName)
  60.     {
  61.         $this->userName = $userName;
  62.     }
  63.  
  64.     /**
  65.      * Get userName
  66.      *
  67.      * @return string
  68.      */
  69.     public function getUserName()
  70.     {
  71.         return $this->userName;
  72.     }
  73.  
  74.     /**
  75.      * Set email
  76.      *
  77.      * @param string $email
  78.      */
  79.     public function setEmail($email)
  80.     {
  81.         $this->email = $email;
  82.     }
  83.  
  84.     /**
  85.      * Get email
  86.      *
  87.      * @return string
  88.      */
  89.     public function getEmail()
  90.     {
  91.         return $this->email;
  92.     }
  93.  
  94.     /**
  95.      * Set bio
  96.      *
  97.      * @param text $bio
  98.      */
  99.     public function setBio($bio)
  100.     {
  101.         $this->bio = $bio;
  102.     }
  103.  
  104.     /**
  105.      * Get bio
  106.      *
  107.      * @return text
  108.      */
  109.     public function getBio()
  110.     {
  111.         return $this->bio;
  112.     }
  113. }
antes tube que crear la base de datos biblioteca que indica en la linea 32 de cli-config.php
Ejecuté 'php doctrine orm:schema-tool:create' y generó la tabla user, que era lo que estaba buscando.