Need help, I can’t see what I’m doing wrong… I’m trying in brand add form to upload a logo image but
with hasOne association I cant make it works.
BrandsTable
with brand_logo.name that doesn’t work too and when I debug patchentity doesn’t show the associated model.
Before asking help I have made a research and found this Upload creating an exception · Issue #239 · davidyell/CakePHP-Proffer · GitHub but the solution given by author of the issue or davidyell doesn’t work for me…
I have found the solution:
My mistake was ‘brand_logos’=>true instead of brand_logo=>true in brand model entity and in the form
like zuluru said is brand_logo.name!
Thank Zuluru and dreamingming for yours helps