framework icon indicating copy to clipboard operation
framework copied to clipboard

Defining Eloquent freshTimestamp() results in fromDateTime()

Open ibrasho opened this issue 13 years ago • 3 comments

If you have defined freshTimestamp() to return anything but a DateTime instance, when you update a record setAttribute() is called which process the value through fromDateTime(DateTime).

This throws an error since the parameter types mismatch. :-(

Any suggestions other than to override setAttribute() or fromDateTime()?

ibrasho avatar May 25 '13 15:05 ibrasho

I recently made some changes that might address this. Can you update your framework and give it a shot?

taylorotwell avatar May 25 '13 17:05 taylorotwell

Recently as in this morning.

taylorotwell avatar May 25 '13 17:05 taylorotwell

Thanks, it works now.

ibrasho avatar May 25 '13 17:05 ibrasho