for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class CategoriesList extends \Suricate\DBCollection
{
protected $tableName = 'categories';
protected $itemsType = Category::class;
protected $parentIdField = 'parent_id';
protected $parentType = Category::class;
public function __construct()
parent::__construct();
$database = new \Suricate\Database();
$database->configure([
'type' => 'sqlite',
'file' => '/tmp/test.db',
]);
$this->dbLink = $database;
}