Re: Oracle autoincrement : PROBLEM

2009-09-05 Thread logislack

Hi Xanax

Try this http://bakery.cakephp.org/articles/view/increment-behavior

Saluos!

On Sep 4, 8:30 am, Xanax mammer...@gmail.com wrote:
 Hi,

 I have a BIG problem.

 There is no autoincrement option in Oracle like in MySQL.

 Apparently, with CakePHP and Oracle, people use sequences and triggers
 to bypass this.

 My problem : I can't use triggers on my database, it's forbidden by my
 company.
 And of course i don't want to replace all the model-save() methods
 by their corresponding SQL request.

 Do you know what would be a good solution for me ? Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~--~~~~--~~--~--~---



Oracle autoincrement : PROBLEM

2009-09-04 Thread Xanax

Hi,

I have a BIG problem.

There is no autoincrement option in Oracle like in MySQL.

Apparently, with CakePHP and Oracle, people use sequences and triggers
to bypass this.

My problem : I can't use triggers on my database, it's forbidden by my
company.
And of course i don't want to replace all the model-save() methods
by their corresponding SQL request.

Do you know what would be a good solution for me ? Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~--~~~~--~~--~--~---