DI model generator
This commit is contained in:
22
core/lib/Thelia/Database/NotORM.php
Normal file
22
core/lib/Thelia/Database/NotORM.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Thelia\Database;
|
||||
|
||||
class NotORM extends \NotORM
|
||||
{
|
||||
|
||||
public function setCache(\NotORM_Cache $cache)
|
||||
{
|
||||
$this->cache = $cache;
|
||||
}
|
||||
|
||||
public function setDebug($debug)
|
||||
{
|
||||
if(is_callable($debug))
|
||||
{
|
||||
$this->debug = $debug;
|
||||
} else {
|
||||
$this->debug = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user