> sorry that's not what i meant, my explanation was a bit unclear, what
> i mean is that i dont want the code *within* the beforeSave function
> to execute if the membership id is set. So if it is set the beforeSave
> function is called as usual

Double negatives are a a little confuse. From your statement I think
the condition should be

if (!(!isset($this->data['Membership']['id'])){
  // Do something
}

or better:

if (isset($this->data['Membership']['id']){
  // Do something
}

Don't know...check your condition...


-- 
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to