Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GoGoCarto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
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
Pixel Humain
GoGoCarto
Commits
39b8a228
Unverified
Commit
39b8a228
authored
Aug 03, 2019
by
Sebastian Castro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import add createdAt/updatedAt
parent
c2189701
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
src/Biopen/GeoDirectoryBundle/Document/Import.php
src/Biopen/GeoDirectoryBundle/Document/Import.php
+36
-0
No files found.
src/Biopen/GeoDirectoryBundle/Document/Import.php
View file @
39b8a228
...
...
@@ -10,6 +10,8 @@ use Biopen\CoreBundle\Document\AbstractFile;
use
Symfony\Component\Validator\Constraints
as
Assert
;
use
Symfony\Component\Validator\Context\ExecutionContextInterface
;
use
Gedmo\Mapping\Annotation
as
Gedmo
;
abstract
class
ImportState
{
const
Started
=
"started"
;
...
...
@@ -135,6 +137,18 @@ class Import extends AbstractFile
*/
private
$lastRefresh
=
null
;
/**
* @MongoDB\Field(type="date")
* @Gedmo\Timestampable(on="create")
*/
private
$createdAt
;
/**
* @MongoDB\Field(type="date")
* @Gedmo\Timestampable(on="update")
*/
private
$updatedAt
;
public
function
__construct
()
{
$this
->
logs
=
new
\
Doctrine\Common\Collections\ArrayCollection
();;
...
...
@@ -545,4 +559,26 @@ class Import extends AbstractFile
{
return
$this
->
lastRefresh
;
}
/**
* Set createdAt
*
* @param date $createdAt
* @return $this
*/
public
function
setCreatedAt
(
$createdAt
)
{
$this
->
createdAt
=
$createdAt
;
return
$this
;
}
/**
* Get createdAt
*
* @return date $createdAt
*/
public
function
getCreatedAt
()
{
return
$this
->
createdAt
;
}
}
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