예제 #1
0
파일: HasMany.php 프로젝트: azhai/CuteLib
 public function bind(Database &$db, $table, $joins = null)
 {
     if (empty($this->foreign_key)) {
         $this->foreign_key = Inflect::singularize($table) . '_id';
     }
     return parent::bind($db, $table, $joins);
 }