Srange behaviour with find('list')

2016-02-17 Thread 'Michael Kornatzki' via CakePHP
Hi, i am using find('list') to get key/values and was very surprised that the key-values are wrong!? if i use $corp = $SupplierCorps->find('list'); Log::debug($corp->toArray()); i get [22] => 1003022 [29] => 1003029 ... where the key is the primaryKey defined in the

Stange behaviour with find('list')

2016-02-17 Thread 'Michael Kornatzki' via CakePHP
Hi, i am using find('list') to get key/values and was very surprised that the key-values are wrong!? if i use $corp = $SupplierCorps->find('list'); Log::debug($corp->toArray()); i get [22] => 1003022 [29] => 1003029 ... where the key is the primaryKey defined in the