In case you haven't seen it, I've replied to your post on
cakephpforum.net:
http://www.cakephpforum.net/index.php?showtopic=155st=0#entry953
Long story short: you can't have the same Alias (key) for 2 different
associations. Change one or both keys.
On Jan 25, 10:47 am, dandreta [EMAIL
On 24 ene, 14:13, dandreta [EMAIL PROTECTED] wrote:
Hi!
I have been verifying it and I have a problem with the relations,
concretly with one:
1 Project - N Persons
N Persons - N Projects
I have two different relations between the same models (Project and
Person). I explain it:
A project
Hi!
I have been verifying it and I have a problem with the relations,
concretly with one:
1 Project - N Persons
N Persons - N Projects
I have two different relations between the same models (Project and
Person). I explain it:
A project can be realized by several persons, but a person only can
Hi!!
I have index function in my controller of the following form:
function index() {
$this-Proyecto-recursive = 2;
$this-set('proyectos', $this-paginate());
}
And all of the projects appear correctly in the index view with their
fields and for each
Samuel,
Take a look on Paginator with Cake 1.2.
http://bakery.cakephp.org/articles/view/basic-pagination-overview-3
Dandreta,
Try to specific the model $this-paginate('Model')
And set debug to 2, for view the sql's.
[]'s
On Jan 23, 2008 5:20 PM, Samuel DeVore [EMAIL PROTECTED] wrote:
you
you paginate models not controllers
try $this-ModelName-paginate
On Jan 23, 2008 12:18 PM, dandreta [EMAIL PROTECTED] wrote:
Hi!!
I have index function in my controller of the following form:
function index() {
$this-Proyecto-recursive = 2;
On Jan 23, 2008 12:25 PM, Renan Gonçalves [EMAIL PROTECTED] wrote:
Samuel,
Take a look on Paginator with Cake 1.2.
http://bakery.cakephp.org/articles/view/basic-pagination-overview-3
Yes you are right (I have my own paginator that I use that is part of
my app_model, that I've been using
There is a problem in one of your related model relations or relations
of the related models. Check about 'fields' options and maybe
className etc ...
A way to search would be to remove the relation on this model one
after the other, until error disappear ..That will give you which
model to