laravel-doctrine / extensions

Extensions integration for Doctrine2 and Laravel

Home Page:http://laraveldoctrine.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Carbon DateTime Type not working

erussell9987 opened this issue · comments

Now my Carbon class type is not working.

'custom_types'              => [
        'json' => LaravelDoctrine\ORM\Types\Json::class,
        "carbondatetime" => DoctrineExtensions\Types\CarbonDateTimeType::class
    ],

The error

[Gedmo\Exception\InvalidMappingException]                                                                         
  Field - [dateCreated] type is not valid and must be 'date', 'datetime' or 'time' in class - RoninManga\Publisher 

Gedmo's Timestampable extension doesn't allow Carbon usage, just like the mapping exception says.