Re: [Cakephp 2.8.1] Multiple assosication to one model with habtm throws a notice

2016-03-24 Thread 'Steffen Reinig' via CakePHP
Hi, i checked your solution, but it occurs the same error. public $hasAndBelongsToMany = array ( 'Owners' => array ( 'className' => 'User', 'with' => 'PermissionOwner', ), 'Rights' => array ( 'clas

Re: [Cakephp 2.8.1] Multiple assosication to one model with habtm throws a notice

2016-03-14 Thread John Andersen
Check your model names in the HABTM relationships. Looks like you have a mix of singular and plural. Enjoy, John On Monday, 14 March 2016 05:33:36 UTC+2, Steffen Reinig wrote: > > Hello Cakephp Fans, > > today i receive these error: > > Notice (8): Undefined index: User [CORE\Cake\Model\Datasour

[Cakephp 2.8.1] Multiple assosication to one model with habtm throws a notice

2016-03-13 Thread 'Steffen Reinig' via CakePHP
Hello Cakephp Fans, today i receive these error: Notice (8): Undefined index: User [CORE\Cake\Model\Datasource\DboSource.php, line 1388] Its easy to reproduce: Model: User belongsTo Group Model: Permission habtm Rights (className User) Permission habtm Owners (className User) When i u