In my original post I referred to a 'Profile' model for simplicity. In fact it is ClinicProfile.
Here are your answers:
var_dump($this->data) (excluding the elements added by the Security component):
[ClinicProfile] => Array ( [id] => 2 [clinic_id] => 4df049cd-b4a8-4d8b-83b3-6ea5b59c8c28 [Logo] => Array ( [foreign_key] => 2 [model] => ClinicProfile [group] => logo [file] => Array ( [name] => logo.gif [type] => image/gif [tmp_name] => /private/var/tmp/phpWqMbrF [error] => 0 [size] => 8349 ) ) [description] => This is a test clinic description. [additional_information] => )
The save call is:
$this->Clinic->ClinicProfile->saveAll($this->data['ClinicProfile'])
The ClinicProfile model is here (with non relevant bits replaced with '...': http://pastie.org/2139066
I don't have a 'Logo' (or a 'Picture') model - should I?
The behaviours are attached to the ClinicProfile model.
I do not have a central Attachment model.
I downloaded the code from GitHub yesterday, so it's the latest version (not sure what number it is).
Other stuff that might help;
- my transfer folder is under app, not webroot media
- I added these lines to the app core.php file:
define('MEDIA_TRANSFER', APP . 'transfer' . DS); define('MEDIA_TRANSFER_URL', false);
- I am using versions, which are stored in webroot/media/filter/etc...
Thanks - I appreciate your input.
On 29 Jun 2011, at 11:12, David Persson wrote:
Hi Jeremy,
The numeric replacement should definitely not happen. In order to help debugging and to get a clear idea of your setup I've got following question.
* Can you post a `var_dump()` of the data before you're actually handing it to the `saveAll()` method?
* Are you saving the data like this: `$this->Profile->saveAll($this->data)`?
* How are your Profile and Logo models setup now?
* Which one has Transfer/Coupler/... behaviors attached to it?
* Do you use a central Attachment model?
* Which version of the plugin are you using?
Thanks,
- David--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment