Example #1
0
 /**
  * {@inheritdoc}
  */
 public static function GetKeyMaps()
 {
     if (self::$KM == null) {
         self::$KM = array();
     }
     return self::$KM;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public static function GetKeyMaps()
 {
     if (self::$KM == null) {
         self::$KM = array();
         self::$KM["fk_pedido_produto"] = new KeyMap("fk_pedido_produto", "ProdutoId", "Produto", "Id", KM_TYPE_MANYTOONE, KM_LOAD_LAZY);
         // you change to KM_LOAD_EAGER here or (preferrably) make the change in _config.php
         self::$KM["fk_pedido_paciente"] = new KeyMap("fk_pedido_paciente", "ClienteId", "Cliente", "Id", KM_TYPE_MANYTOONE, KM_LOAD_LAZY);
         // you change to KM_LOAD_EAGER here or (preferrably) make the change in _config.php
     }
     return self::$KM;
 }