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.




Re: recursive problem

2006-06-15 Thread [EMAIL PROTECTED]

Thanks Larry

I'm need it to pick up all associations - but it's not coping with the
fact that one branch stops before it's reached the #

I'm actually setting the recursive value on the fly - it's not being
controlled by the model.

The core Cake code is a bit intense to just "hop into"

I guess a good workaround would be to write something that builds it
for me

so I could get

[Individual]
  [Membership]
[Association]
  [Group]
[Group Permission]
  [Permission]

If I set it to 2 I don't get errors but I don't get [Permission]
If I set it to 3 I get [Permission] and a stack of errors


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



Re: recursive problem

2006-06-15 Thread Larry E. Masters aka PhpNut
If you mean in your IndividualsController::index()$this->Individual->recursive = '-1'; //turn off all associations.$this->Individual->recursive = '0'; //retrieves only belongsToYou do not have to set them in the class like you have done using var $recursive = #;
-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/ 
On 6/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I've got a find that I'm running that needs to have $recursive set to 3however the other strands of my models don't go that deep and Cakethrows "generateAssociation" errors when it hits them and tries to "go
deep"How do I get Cake to stop on the shallow routes but go the full depthon the deep routes?you can see my models, tables etc at
http://cakephp.org/pastes/show/e4c5088ed5c709653cc526dccac648bethanksSarah

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


recursive problem

2006-06-15 Thread [EMAIL PROTECTED]

I've got a find that I'm running that needs to have $recursive set to 3

however the other strands of my models don't go that deep and Cake
throws "generateAssociation" errors when it hits them and tries to "go
deep"

How do I get Cake to stop on the shallow routes but go the full depth
on the deep routes?

you can see my models, tables etc at
http://cakephp.org/pastes/show/e4c5088ed5c709653cc526dccac648be

thanks

Sarah


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



Re: findAll recursive problem

2006-05-12 Thread theo

OK, I figured this out, though I'm not too thrilled with the solution.

It turns out the recursive functionality is very particular as to what
you name your hasMany relationship.

My Workflow hasMany relationship for Step was named "Step". When I
renamed it to "step", suddenly all my steps where populated with their
respective Rules.

Odd.


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



findAll recursive problem

2006-05-12 Thread theo

Hi there,

I'm also having a problem getting recursive data back greater than 1
level deep. Here's my data model:

Workflow hasMany Steps
Step hasMany Rules

I execute:

$workflow->id = 1;
$workflow->recursive = 3;
$workflow->findAll();

Result:

Workflow has Steps array populated, but all the Steps have empty Rules
arrays. The SQL that is returned trying to load the rules is:

SELECT `Rule`.`id`, `Rule`.`step_id`, `Rule`.`left_value`,
`Rule`.`right_value`, `Rule`.`comparison_operator`, `Rule`.`position`
FROM `rules` AS `Rule` WHERE `Rule`.`step_id`=NULL


HOWEVER, if I just read a Step directly, the Rules array is populated
perfectly.

Can someone help me out with this one? It appears to be an actual bug.

-Theo


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