I'm in doubt about a question that I do in CakePHP. I need to get all the records from my database depending on the difference in hours with a rough date. for instance :
$date = 2015-10-15 11:10:59;
I need calculate that between $data['Inscripcion']['date']
and $date
have four or more hours apart, otherwise should not bring records database. All this in find->('list', array('conditions => array('date')))
.
but it can not think of me as to include the value of the data within the same query