This commit is contained in:
2020-09-02 11:38:47 +08:00
parent 3e46f5790f
commit 8397c2ac8a
46 changed files with 1021 additions and 824 deletions
+3 -1
View File
@@ -20,6 +20,7 @@ use Database\Mysql\Columns;
use Database\Relation;
use Snowflake\Error\Logger;
use Exception;
use Snowflake\Exception\ComponentException;
use validator\Validator;
use Database\IOrm;
use Snowflake\Snowflake;
@@ -118,10 +119,11 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
* @return mixed
*
* get last exception or other error
* @throws ComponentException
*/
public function getLastError()
{
return Logger::getLastError('mysql');
return Snowflake::get()->getLogger()->getLastError('mysql');
}
/**