Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
ed859d24
Commit
ed859d24
authored
Jan 27, 2016
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавлены зависимости для моделей модуля
parent
f59aa359
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
common/modules/triggers/models/TriggerScenario.php
common/modules/triggers/models/TriggerScenario.php
+4
-3
common/modules/triggers/models/TriggerTrigger.php
common/modules/triggers/models/TriggerTrigger.php
+4
-3
No files found.
common/modules/triggers/models/TriggerScenario.php
View file @
ed859d24
...
...
@@ -3,6 +3,7 @@
namespace
common\modules\triggers\models
;
use
Yii
;
use
common\modules\users\models\User
;
/**
* This is the model class for table "trigger_scenario".
...
...
@@ -15,7 +16,7 @@ use Yii;
* @property string $date_create
*
* @property TriggerConnection[] $triggerConnections
* @property User
s
$owner
* @property User $owner
*/
class
TriggerScenario
extends
\yii\db\ActiveRecord
{
...
...
@@ -38,7 +39,7 @@ class TriggerScenario extends \yii\db\ActiveRecord
[[
'description'
],
'string'
],
[[
'date_create'
],
'safe'
],
[[
'name'
],
'string'
,
'max'
=>
255
],
[[
'owner_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
User
s
::
className
(),
'targetAttribute'
=>
[
'owner_id'
=>
'id'
]],
[[
'owner_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
User
::
className
(),
'targetAttribute'
=>
[
'owner_id'
=>
'id'
]],
];
}
...
...
@@ -70,6 +71,6 @@ class TriggerScenario extends \yii\db\ActiveRecord
*/
public
function
getOwner
()
{
return
$this
->
hasOne
(
User
s
::
className
(),
[
'id'
=>
'owner_id'
]);
return
$this
->
hasOne
(
User
::
className
(),
[
'id'
=>
'owner_id'
]);
}
}
common/modules/triggers/models/TriggerTrigger.php
View file @
ed859d24
...
...
@@ -3,6 +3,7 @@
namespace
common\modules\triggers\models
;
use
Yii
;
use
common\modules\users\models\User
;
/**
* This is the model class for table "trigger_trigger".
...
...
@@ -17,7 +18,7 @@ use Yii;
* @property integer $message_template_id
*
* @property TriggerConnection[] $triggerConnections
* @property User
s
$owner
* @property User $owner
*/
class
TriggerTrigger
extends
\yii\db\ActiveRecord
{
...
...
@@ -40,7 +41,7 @@ class TriggerTrigger extends \yii\db\ActiveRecord
[[
'description'
],
'string'
],
[[
'date_create'
],
'safe'
],
[[
'name'
],
'string'
,
'max'
=>
255
],
[[
'owner_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
User
s
::
className
(),
'targetAttribute'
=>
[
'owner_id'
=>
'id'
]],
[[
'owner_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
User
::
className
(),
'targetAttribute'
=>
[
'owner_id'
=>
'id'
]],
];
}
...
...
@@ -74,6 +75,6 @@ class TriggerTrigger extends \yii\db\ActiveRecord
*/
public
function
getOwner
()
{
return
$this
->
hasOne
(
User
s
::
className
(),
[
'id'
=>
'owner_id'
]);
return
$this
->
hasOne
(
User
::
className
(),
[
'id'
=>
'owner_id'
]);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment