No, there is no id field.
I double checked beforeValidate() and debuged $this->data. There is no
id field.
The id is given within the URL when entering the update form, but with
the first submit and upcoming error messages, the ID gets lost within
the URL.

'agt_nummer_uni'=>array(
                'rule'=> array('checkUnique'),
                'message'=> 'Duplikat! Diese Agentur Nr. wurde bereits
gespeichert.'
                )

function checkUnique($data) {
        //debug($data);
        return $this->isUnique(array('agt_nummer' => $this-
>data['Agent']['agt_nummer']));
    }



-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to