/** * &_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; }