title: Automatically update DB cakephp
body: <p>I'm currently making an e commerce website using cakephp. 
  An article can be activated or disabled (bool). I put a validity date for an article and I'd like to automatically disable the article if outdated.</p>
  
  <p>What is the best way to do it? With a SQL Event and trigger? Or can I write an event function in Cakephp and how?</p>
  
  <p>Thanks.</p>