For example I have table
orders
and model
Order
order have attribute status. Initial status is 'cart', but second status is 'ordered', after that status is 'processed', after that status id 'delivery', after that status is 'canceled' or completed. I will probably have more than 10 statuses.
Is there any a better solution rather than creating datetime attribute/field for each status :
cart_at
ordered_at
processed_at
....
and then save datetime for each status after is changed ?
I want a package where I can do something like :
echo 'Order is cancelled at '. $order->getDateFor('status', 'canceled');