Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
52169a41
Commit
52169a41
authored
Jan 23, 2008
by
jwage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #648
parent
7a2fec88
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Timestampable.php
lib/Doctrine/Template/Listener/Timestampable.php
+1
-1
Timestampable.php
lib/Doctrine/Template/Timestampable.php
+1
-0
No files found.
lib/Doctrine/Template/Listener/Timestampable.php
View file @
52169a41
...
...
@@ -63,7 +63,7 @@ class Doctrine_Template_Listener_Timestampable extends Doctrine_Record_Listener
$event
->
getInvoker
()
->
$createdName
=
$this
->
getTimestamp
(
'created'
);
}
if
(
!
$this
->
_options
[
'updated'
][
'disabled'
])
{
if
(
!
$this
->
_options
[
'updated'
][
'disabled'
]
&&
$this
->
_options
[
'updated'
][
'onInsert'
]
)
{
$updatedName
=
$this
->
_options
[
'updated'
][
'name'
];
$event
->
getInvoker
()
->
$updatedName
=
$this
->
getTimestamp
(
'updated'
);
}
...
...
lib/Doctrine/Template/Timestampable.php
View file @
52169a41
...
...
@@ -50,6 +50,7 @@ class Doctrine_Template_Timestampable extends Doctrine_Template
'format'
=>
'Y-m-d H:i:s'
,
'disabled'
=>
false
,
'expression'
=>
false
,
'onInsert'
=>
true
,
'options'
=>
array
()));
/**
...
...
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