laravel-doctrine / extensions

Extensions integration for Doctrine2 and Laravel
http://laraveldoctrine.org/
MIT License
48 stars 24 forks source link

Timestampable with Custom Type #26

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi, Is there a way to use Timestampable with a custom type (CarbonDateTime, for example)? It appears to be throwing an exception: Field - [created_at] type is not valid and must be 'date', 'datetime' or 'time'.

patrickbrouwers commented 8 years ago

I'm afraid not, it looks baked into their code: https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/timestampable.md#timestampable-annotations