SaveAll cakephp 2x

0

In my table Escola I have another associated table called EscolaPercentual . And I have a form that has data of the 2 tables, at the time of saving in my action I give a SaveAll in the School Model, which has $hasMany for the modeno EscolaPercentual , so it saves what is Escola in Escola and what is EscolaPercentual in it.
The problem is that when I edit, if I do not retype all data that is decimal numbers on EscolaPercentual , the database does not accept and everything is 999.99. In the Percentage School model, I debugged using beforeSave to see how the data was going, and found that 20.00 was being displayed on my form, but when I debugged I saw that 20.00 turned out to be 2000 and the bank of data turned it into 999,99 since I set the column to double.

    
asked by anonymous 06.01.2016 / 17:22

0 answers