Re: CakeDC Tags Plugin - recursive problem

2014-03-01 Thread dbailey
Did you ever have any success with this? I've been having the exact same 
problem. If you did find a solution, what did you use?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: CakeDC Tags Plugin - recursive problem

2012-09-22 Thread Jono Austin
Sorry was away from PC when I sent that - I've implemented it correctly.

To be clear, the plugin is working fine - its just when I find using the tag 
name, I don't get the expected recursion for my model.



On 22 Sep, 2012, at 8:29 PM, Tilen Majerle  wrote:

> it's $actsAs ... you forgot "s" :)
> --
> Lep pozdrav, Tilen Majerle
> http://majerle.eu
> 
> 
> 
> 2012/9/22 Jono Austin 
> It's a behaviour and is integrated via $actAs - unless I am missing a step?
> 
> 
> On 22 Sep, 2012, at 7:05 PM, "Dr. Tarique Sani"  wrote:
> 
> > On Sat, Sep 22, 2012 at 2:39 PM, jonoa  wrote:
> >> My model relationships:
> >>
> >> Product belongsTo Store, Collection
> >> Collection hasMany Product
> >> Store hasMany Product
> >
> > Isn't the plugin supposed to work with HABTM relationships only? I
> > don't see any HasAndBelongToMany in your set up...
> >
> > Cheers
> > Tarique
> >
> > --
> > =
> > Conference scheduling made simple http://shdlr.com
> >
> > PHP for E-Biz: http://sanisoft.com
> > =
> >
> > --
> > Like Us on FacekBook https://www.facebook.com/CakePHP
> > Find us on Twitter http://twitter.com/CakePHP
> >
> > ---
> > You received this message because you are subscribed to the Google Groups 
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > cake-php+unsubscr...@googlegroups.com.
> > Visit this group at http://groups.google.com/group/cake-php?hl=en.
> >
> >
> 
> --
> Like Us on FacekBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> 
> 
> 
> -- 
> Like Us on FacekBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  

-- 
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CakeDC Tags Plugin - recursive problem

2012-09-22 Thread Tilen Majerle
it's $actsAs ... you forgot "s" :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2012/9/22 Jono Austin 

> It's a behaviour and is integrated via $actAs - unless I am missing a step?
>
>
> On 22 Sep, 2012, at 7:05 PM, "Dr. Tarique Sani" 
> wrote:
>
> > On Sat, Sep 22, 2012 at 2:39 PM, jonoa  wrote:
> >> My model relationships:
> >>
> >> Product belongsTo Store, Collection
> >> Collection hasMany Product
> >> Store hasMany Product
> >
> > Isn't the plugin supposed to work with HABTM relationships only? I
> > don't see any HasAndBelongToMany in your set up...
> >
> > Cheers
> > Tarique
> >
> > --
> > =
> > Conference scheduling made simple http://shdlr.com
> >
> > PHP for E-Biz: http://sanisoft.com
> > =
> >
> > --
> > Like Us on FacekBook https://www.facebook.com/CakePHP
> > Find us on Twitter http://twitter.com/CakePHP
> >
> > ---
> > You received this message because you are subscribed to the Google
> Groups "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com.
> > To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> > Visit this group at http://groups.google.com/group/cake-php?hl=en.
> >
> >
>
> --
> Like Us on FacekBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>

-- 
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CakeDC Tags Plugin - recursive problem

2012-09-22 Thread Jono Austin
It's a behaviour and is integrated via $actAs - unless I am missing a step?


On 22 Sep, 2012, at 7:05 PM, "Dr. Tarique Sani"  wrote:

> On Sat, Sep 22, 2012 at 2:39 PM, jonoa  wrote:
>> My model relationships:
>> 
>> Product belongsTo Store, Collection
>> Collection hasMany Product
>> Store hasMany Product
> 
> Isn't the plugin supposed to work with HABTM relationships only? I
> don't see any HasAndBelongToMany in your set up...
> 
> Cheers
> Tarique
> 
> -- 
> =
> Conference scheduling made simple http://shdlr.com
> 
> PHP for E-Biz: http://sanisoft.com
> =
> 
> -- 
> Like Us on FacekBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> 
> 

-- 
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CakeDC Tags Plugin - recursive problem

2012-09-22 Thread Dr. Tarique Sani
On Sat, Sep 22, 2012 at 2:39 PM, jonoa  wrote:
> My model relationships:
>
> Product belongsTo Store, Collection
> Collection hasMany Product
> Store hasMany Product

Isn't the plugin supposed to work with HABTM relationships only? I
don't see any HasAndBelongToMany in your set up...

Cheers
Tarique

-- 
=
Conference scheduling made simple http://shdlr.com

PHP for E-Biz: http://sanisoft.com
=

-- 
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




CakeDC Tags Plugin - recursive problem

2012-09-22 Thread jonoa
Hi everyone

Having some issue with CakeDC Tags Plugin (See 
https://github.com/CakeDC/tags)

I'm using the _findTagged method to find all records from my model with a 
specified tag. While it returns the top level model, I can't seem to get it 
to return the associated model.

My model relationships:

Product belongsTo Store, Collection
Collection hasMany Product
Store hasMany Product

This is what I'm using to search by tag name:

$this->set('products', $this->Product->Tagged->find('tagged', array('by' => 
$this->passedArgs['tag'], 'model' => 'Product', 'recursive' => '2')));

This will return the Product records, but not the associated models - If I 
do $this->Product->find('all'), the result is as expected - so model 
relationships are correct.

Anyone have any experience with this plugin?

Kind Regards,

Jono

-- 
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.