Beispiel #1
0
 public function __construct(Nette\Database\Context $db)
 {
     $this->db = $db;
     Nette\Database\Table\Selection::extensionMethod('getCursor', function ($selection) use($db) {
         return $db->queryArgs($selection->getSql(), $selection->getSqlBuilder()->getParameters());
     });
 }