tags:

views:

12

answers:

0

Hello everybody. I'm starting with EZPDO and was wondering if there is any way to, having the PHP class, construct the DataBase diagram.

For example. I've this class:

<?php
/**
 * class Localidad
 * @orm mysql://xxx:[email protected]/yyy
 */
class Localidad {

       /**
    * @orm integer
    */
   public $id_alquileres;

   /**
    * @orm date
    */   
   public $fecha_modificacion;

   /**
    * @orm char(100)
    */
   public $nombre;


   /**
    * @orm integer
    */
   public $codigo_postal;

  /**
   * @orm has one Provincia
   */
   public $provincia;

}
?>

Thanks!