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.


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: CakeDC Tags Plugin - recursive problem

2012-09-22 Thread Dr. Tarique Sani
On Sat, Sep 22, 2012 at 2:39 PM, jonoa jonoaus...@gmail.com 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.




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 tariques...@gmail.com wrote:

 On Sat, Sep 22, 2012 at 2:39 PM, jonoa jonoaus...@gmail.com 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 Tilen Majerle
it's $actsAs ... you forgot s :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2012/9/22 Jono Austin jonoaus...@gmail.com

 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 tariques...@gmail.com
 wrote:

  On Sat, Sep 22, 2012 at 2:39 PM, jonoa jonoaus...@gmail.com 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
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 tilen.maje...@gmail.com wrote:

 it's $actsAs ... you forgot s :)
 --
 Lep pozdrav, Tilen Majerle
 http://majerle.eu
 
 
 
 2012/9/22 Jono Austin jonoaus...@gmail.com
 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 tariques...@gmail.com wrote:
 
  On Sat, Sep 22, 2012 at 2:39 PM, jonoa jonoaus...@gmail.com 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.




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: 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* @accesspublic*/ 
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
deepHow 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  -~--~~~~--~~--~--~---


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
-~--~~~~--~~--~--~---