for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Delivery user info
* @author Alexey Krupskiy <[email protected]>
* @link http://inji.ru/
* @copyright 2016 Alexey Krupskiy
* @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
*/
namespace Ecommerce\Delivery;
class Value extends \Model
{
public static $cols = [
//Основные параметры
'delivery_save_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'save'],
'delivery_field_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'field'],
'value' => ['type' => 'text'],
//Системные
'date_create' => ['type' => 'dateTime'],
];
public static $forms = [
'manager' => [
'map' => [
['cart_id', 'delivery_field_id', 'value']
]
public static $dataManagers = [
'cols' => [
'cart_id',
'delivery_field_id',
'value'
public static function relations()
return [
'field' => [
'model' => 'Ecommerce\Delivery\Field',
'col' => 'useradds_field_id'
],
'save' => [
'model' => 'Ecommerce\Delivery\Save',
'col' => 'cart_id'
}