public function __construct($collection = null) { $db = Base::instance()->get($this->connection); parent::__construct($db, $collection ?: $this->collection); }