Questions tagged with recursive

1 answer

0 votes

Asked by aiyer, on 11/1/10 in

Paginate? Recursive? What are they doing?

Avast,

One tutorial I used has this for the index() method:


$this->User->recursive = 0;
$this->set('users', $this->paginate());

which i was a little unsure what to do with. Ok, i get that I can now access, from my index.ctp, a $users variable,...

1 answer

0 votes

Asked by renaudd, on 7/2/10 in

Multi-level recursive delete

Hello,

Supposing we have a model looking like:

Albums ---hasMany-- Photos --hasMany--Comments

With Photos having the afterDelete callback defined (in this case, it removes actual image files from the disk)

It seems that having dependent set to true...

1 answer

0 votes

Asked by Henkka, 1 month, 1 day ago in

How to limit information when recursive = 2?

I have models like this:

Invoice-Rows-Products

When in baked Invoice view-function it would be nice to see product names instead of IDs. I can accomplish it with recursive = 2 but then I'm getting huge array because I have also other...

0 answers

0 votes

Asked by saeed, 4 days, 11 hours ago in

Pagination.

Hi all,

I am stuck on pagination. I am trying to paginate feePayment records based on certain criteria.

feePayments belongs to Students which in turn belongs YearGroups.

I want to paginate 'unpaid' feePayments for each year group. The problem I am...

<< previous next >>