for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Reward trigger
*
* @author Alexey Krupskiy <[email protected]>
* @link http://inji.ru/
* @copyright 2015 Alexey Krupskiy
* @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
*/
namespace Money\Reward;
class Trigger extends \Model
{
public static function relations()
return [
'params' => [
'type' => 'many',
'model' => 'Money\Reward\Trigger\Param',
'col' => 'reward_trigger_id',
'resultKey' => 'param'
]
];
}