Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
deck-web
logger
Commits
82d84c84
Commit
82d84c84
authored
3 years ago
by
Ильнур Табулдин
Browse files
Options
Download
Email Patches
Plain Diff
drop user logger
parent
f89e24df
master
#1
1-
develop
v1.1.5
v1.1.4
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.9
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
v0.8.0
v0.7.6
v0.7.5
v0.7.4
v0.7.3
v0.7.2
v0.7.1
v0.7.0
v0.6.6
v0.6.5
v0.6.4
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.6
v0.5.5
v0.5.4
v0.5.3
v0.5.2
v0.5.1
v0.5.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/models/Logger.php
+0
-21
src/models/Logger.php
with
0 additions
and
21 deletions
+0
-21
src/models/Logger.php
+
0
-
21
View file @
82d84c84
...
...
@@ -16,16 +16,6 @@ namespace deck\logger\models;
*/
class
Logger
extends
\
yii\db\ActiveRecord
{
protected
$userClassName
=
null
;
protected
$userIdFieldName
=
'id'
;
public
function
init
()
{
$this
->
userClassName
=
\
Yii
::
$app
->
params
[
'userClassName'
];
$this
->
userIdFieldName
=
\
Yii
::
$app
->
params
[
'userIdFieldName'
];
parent
::
init
();
}
/**
* {@inheritdoc}
*/
...
...
@@ -44,7 +34,6 @@ class Logger extends \yii\db\ActiveRecord
[[
'user_id'
],
'default'
,
'value'
=>
null
],
[[
'user_id'
],
'integer'
],
[[
'uuid'
],
'string'
,
'max'
=>
255
],
[[
'user_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
$this
->
userClassName
,
'targetAttribute'
=>
[
'user_id'
=>
$this
->
userIdFieldName
]],
];
}
...
...
@@ -71,14 +60,4 @@ class Logger extends \yii\db\ActiveRecord
{
return
$this
->
hasMany
(
Event
::
class
,
[
'logger_id'
=>
'id'
]);
}
/**
* Gets query for [[User]].
*
* @return \yii\db\ActiveQuery
*/
public
function
getUser
()
{
return
$this
->
hasOne
(
$this
->
userClassName
,
[
$this
->
userIdFieldName
=>
'user_id'
]);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help