3 responses to “$this->Model->save not updating, $this->Model->saveField”

  1. Lucas

    you need to set the id of the model so that cake can save the field to the right entry in the database.
    i.e. quote from :
    http://book.cakephp.org/view/75/Saving-Your-Data

    Set the ID of the model ($this->ModelName->id = $id) just before calling saveField().

  2. Holger

    I don’t think you misunderstood that, that’s confusing for me too. Anyway “$this->ModelName->id = $id” was the solution for my UpdatePassword-Action too. Thank you!

Leave a Reply