Skip to content

Commit

Permalink
Merge pull request #332 from PROCERGS/dev
Browse files Browse the repository at this point in the history
Fixed NFG integration problem #331
  • Loading branch information
guilhermednt committed Jan 13, 2016
2 parents 0f62a22 + 2099219 commit c0507d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PROCERGS/LoginCidadao/CoreBundle/Entity/NfgProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ public function getVoterRegistrationSit()
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAt($var = NULL)
public function setUpdatedAt($updatedAt = null)
{
if ($var === null) {
$this->updatedAt = new \DateTime();
if ($updatedAt instanceof \DateTime) {
$this->updatedAt = $updatedAt;
} else {
$this->updatedAt = $var;
$this->updatedAt = new \DateTime('now');
}
return $this;
}
Expand Down

0 comments on commit c0507d0

Please sign in to comment.