示例#1
0
文件: MysqlTest.php 项目: Nervie/Beta
 /**
  * &_prepareAssociationQuery method
  *
  * @param mixed $model
  * @param mixed $queryData
  * @param mixed $binding
  * @access public
  * @return void
  */
 function &_prepareAssociationQuery($model, &$queryData, $binding)
 {
     $type = $binding['type'];
     $assoc = $binding['model'];
     $assocData = $model->{$type}[$assoc];
     $className = $assocData['className'];
     $linkModel = $model->{$className};
     $external = isset($assocData['external']);
     $queryData = $this->Dbo->__scrubQueryData($queryData);
     $result = array_merge(array('linkModel' => &$linkModel), compact('type', 'assoc', 'assocData', 'external'));
     return $result;
 }