doctrine - calculated return from entityrepository method -


was wondering if possible (or maybe not best practice) return calculated value entityrepository method, or if should doing calculation somewhere else. example.

my entity users have times (times day of week , corresponding time day of week not hard date)

looking write function returns next time specific date, example if today 2/8/16 (monday) , next "time" tuesday @ 12:00pm want function return datetime object reflecting 2/9/16 12:00pm


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -