~desarrollokumbia/kumbia/ActiveRecord

« back to all changes in this revision

Viewing changes to db_pool/adapters/pgsql_db.php

  • Committer: Deivinson Tejeda
  • Date: 2010-01-12 16:24:02 UTC
  • Revision ID: deivinsontejeda@gmail.com-20100112162402-s085f3pzh5g2yyms
Agregando método sql() en el ActiveRecord con Prepared Statement, tambien se arregló en el adapter de pgsql ya que utilizaba el setRelation luego se vera como se maneja

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
                    }
80
80
                    //Relaciones
81
81
                    if(substr($field->name, strlen($field->name) -3, 3) == '_id'){
82
 
                        $metadata->setRelation($field->name, $attribute->relation);
 
82
                        //$metadata->setRelation($field->name, $attribute->relation);
83
83
                        $attribute->alias =  ucwords(strtr($field->name,'_-','  '));
84
84
                    }
85
85
                    //tipo de dato