This commit is contained in:
parent
9ac324d735
commit
023c91965c
@ -1386,6 +1386,26 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* fetch
|
||||||
|
* fetches data using the provided queryKey and
|
||||||
|
* the associated query in the query registry
|
||||||
|
*
|
||||||
|
* if no query for given queryKey is being found a
|
||||||
|
* Doctrine_Query_Registry exception is being thrown
|
||||||
|
*
|
||||||
|
* @param string $queryKey the query key
|
||||||
|
* @param array $params prepared statement params (if any)
|
||||||
|
* @return mixed the fetched data
|
||||||
|
*/
|
||||||
|
public function fetch($queryKey, $params = array())
|
||||||
|
{
|
||||||
|
return $this->_manager->getQueryRegistry()
|
||||||
|
->get($queryKey)
|
||||||
|
->execute($params);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* call
|
* call
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user