Hi,
Thanks for the tip I\ll try and use it today and see if it works.
I actually do not use the object name it was just to simplify the
example...
Thanks again,
Ita
On May 30, 4:46 pm, AD7six <[EMAIL PROTECTED]> wrote:
> Ita wrote:
> > Hi,
> > In my DB I have 3 tables
> > objects, users & votes
>
> You are going to have problems with a model class named 'Object' since
> it already exists - you need to choose a different name.
>
> regarding the check, as I'm here, simply use your associations:
>
> if ($this->Vote->Thing->hasAny(array('Thing.name'=>$objectName)) {
> // cast vote.
>
> }
>
> hth,
>
> AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---