Re: more than 1 level of belongsTo

2012-06-10 Thread rahajiyev
OK, I finally managed to work around this thanks to this: http://stackoverflow.com/questions/806650/in-cakephp-how-to-retrieve-joined-result-from-multiple-tables I also had to remove $belongsTo from models because otherwise it would naturally do joins twice causing conflicts. Of course the solutio

Re: more than 1 level of belongsTo

2012-06-10 Thread rahajiyev
I can't find what the problem is. OK guys, here's more details: This is main table that will be updated: class AcctTab extends AppModel { public $primaryKey = 'aacct'; public $belongsTo = array('CardAcctTab' => array('foreignKey' => 'aacct')); } This is intermediate table to get

Re: Contain conditions based off parents data.

2012-06-10 Thread Angad Nadkarni
$this->ParentDomain->hasMany['ParentDomain']['conditions'] = 'ParentDomain.chronicle_id = 1'; On Jun 11, 8:45 am, Michael Gaiser wrote: > So I have a table called Domains which has a parent_id allowing the domains > to contain a parent/child relationship, the parent being referred to as > ParentD

Contain conditions based off parents data.

2012-06-10 Thread Michael Gaiser
So I have a table called Domains which has a parent_id allowing the domains to contain a parent/child relationship, the parent being referred to as ParentDomain. For the case I am working on, the ParentDomain has a variable called chronicle_id. The condition I want to make will get all domains whe

Auth component's default password hash method?

2012-06-10 Thread Benjamin Allison
Just wondering when I use AuthComponent::password, what its default hash method is. I recently read that the creator of MD5 said not to use it for password hashing, so was just curious. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP

Loginform without formhelper

2012-06-10 Thread alxy
Hello there, I´m new with CakePHP and did the Cookbook-tutorials first. They worked quite nice, but now i have the first questions. I wanted to change the layout of the login form. It took a long time to this because of the limitations of the form helper. And i realized, that it would propably

Re: Login Difficulty : CakePHP 2.0

2012-06-10 Thread kvijay
Hey thanks, I had the same problem which has been resolved by using this solution. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Login-Difficulty-CakePHP-2-0-tp4916439p5708682.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the co

Re: Login Difficulty : CakePHP 2.0

2012-06-10 Thread kvijay
Hey thanks, I had the same problem which has been resolved by using this solution. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Login-Difficulty-CakePHP-2-0-tp4916439p5708683.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the co

Connect plugin models with main models

2012-06-10 Thread Lucky1968
Hi, I'm using CakePHP 2.1. My main system has a User-model which I want to connect from within a plugin model which is called SliderSlide. So in the SliderSlide-model I want to define a belongsTo User relationship but I don't want to define a hasMany SliderSlide in the User model since the plugin m