Re: mixing uuid and aiid

2011-09-23 Thread euromark
after many many hours i finally found it...
one shouldnt override basic model functions like getId() in the
current model.
breaks a lot of things :)


On 21 Sep., 13:05, euromark dereurom...@googlemail.com wrote:
 i never had a problem mixing auto increment ids and uuids.
 but with the current head versions of cake1.3 it seems to get messed
 up

 i got a simple address table with id(int 10) as primary and a
 foreign_id (char 36) for user model etc
 pretty sure it used to work

 but now on every update it tries to insert. the id is in the form and
 passed to the model. checked that already. cache cleared

 SQL Error: 1062: Duplicate entry '38' for key 'PRIMARY' [CORE\cake\libs
 \model\datasources\dbo_source.php, line 684]

 anyone else having these issues?

 on localhost add works: $this-id is 46 for example
 on www even add failes: $this-id is a uuid - e.g. redirects to /
 addresses/view/4c482e3e-7f4c-47e6-8eff-743c53a92966
 which can never work of course...
 again - cache cleared and schema is correct

 whats going on here?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


mixing uuid and aiid

2011-09-21 Thread euromark
i never had a problem mixing auto increment ids and uuids.
but with the current head versions of cake1.3 it seems to get messed
up

i got a simple address table with id(int 10) as primary and a
foreign_id (char 36) for user model etc
pretty sure it used to work

but now on every update it tries to insert. the id is in the form and
passed to the model. checked that already. cache cleared

SQL Error: 1062: Duplicate entry '38' for key 'PRIMARY' [CORE\cake\libs
\model\datasources\dbo_source.php, line 684]

anyone else having these issues?

on localhost add works: $this-id is 46 for example
on www even add failes: $this-id is a uuid - e.g. redirects to /
addresses/view/4c482e3e-7f4c-47e6-8eff-743c53a92966
which can never work of course...
again - cache cleared and schema is correct

whats going on here?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php