Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carbon DateTime Type not working #9

Closed
erussell9987 opened this issue Nov 4, 2015 · 1 comment
Closed

Carbon DateTime Type not working #9

erussell9987 opened this issue Nov 4, 2015 · 1 comment

Comments

@erussell9987
Copy link

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 

@patrickbrouwers
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants