public function findCollection($type, $sql, $bindings = array())
{
try {
$cursor = $this->writer->queryRecordWithCursor($type, $sql, $bindings);
return new BeanCollection($type, $this, $cursor);
} catch (SQLException $exception) {
$this->handleException($exception);
}
return new BeanCollection($type, $this, new NullCursor());
}