for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Exchange Log
*
* @author Alexey Krupskiy <[email protected]>
* @link http://inji.ru/
* @copyright 2015 Alexey Krupskiy
* @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
*/
namespace Exchange1c\Exchange;
class Log extends \Model {
public static $logging = false;
public static $cols = [
'type' => ['type' => 'text'],
'info' => ['type' => 'text'],
'query' => ['type' => 'text'],
'status' => ['type' => 'text'],
'exchange_id' => ['type' => 'select', 'source' => 'relation', 'realtion' => 'exchange'],
'date_create' => ['type' => 'dateTime'],
'date_end' => ['type' => 'dateTime', 'null' => true, 'emptyValue' => null],
];
public static $dataManagers = [
'manager' => [
'cols' => [
'type', 'info', 'query', 'status', 'date_create', 'date_end'
],
]
public static $forms = [
'map' => [
['type', 'info', 'status'],
['query']
public static function relations() {
return [
'exchange' => [
'col' => 'exchange_id',
'model' => 'Exchange1c\Exchange'
}