Guest User

Untitled

a guest
Feb 2nd, 2014
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Fabik\Database;
  4.  
  5. ...
  6.  
  7. class Selection extends \Nette\Database\Table\Selection implements IModelManagerAccessor
  8. {
  9.    
  10.     ...
  11.  
  12.     public function __construct($table, IModelManager $manager)
  13.     {
  14.         // if (NETTE_VERSION_ID >= 20100) {
  15.             parent::__construct($manager->getConnection(), $table, $manager->getDatabaseReflection(), $manager->getCacheStorage());
  16.         // } else {
  17.         //  parent::__construct($table, $manager->getConnection());
  18.         // }
  19.         $this->manager = $manager;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment