I have the Fields the Type DATETIME and Other DATE but when i INSERT NULL I have This Error : on controller i set that :
in Entity I do That
Fatal error: Call to a member function format() on a non-object in C:\wamp\www\imp rimvert\vendor\ doctrine\dbal\l ib\Doctrine\DBA L\Types\DateTyp e.php on line 53
How can i resolve that
Code:
$data ['dateCreation'] = $tab['dateCrea'];
Code:
$tab['dateCrea'] somtimes NULL other Times 123614 or 21/12/2014 21:05:00 or others time
Code:
public function setModificationdate($modificationdate)
{
$this->modificationdate = new \DateTime($modificationdate);
return $this;
}
How can i resolve that
Comment