title: I have defined a function in helper for saving data using model but it throws "__toString() must not throw an exception" error
body: <p>I have defined a function in helper for saving data using model but it throws <code>"__toString()</code> must not throw an exception" error.</p>
  
  <p>may be it is the problem of magic function. Any help is appreciated.</p>