Problem with belongstomany and the new bake plugin

2015-01-20 Thread pola
. That ends in an error: Controller not found. Entity and Table looks fine. The Problem seems that Bake links the join Table in the Controller and the Views. Does anybody experience the same problems? Best pola -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http

Re: Problem with belongstomany and the new bake plugin

2015-01-20 Thread pola
Try it please out: DROP TABLE IF EXISTS `batches_documents` ; CREATE TABLE IF NOT EXISTS `batches_documents` ( batch_id INT(11) NOT NULL, document_id INT(11) NOT NULL, PRIMARY KEY (`batch_id`,`document_id`) ); DROP TABLE IF EXISTS `batches` ; CREATE TABLE IF NOT EXISTS `batches` (

Re: Good SVN Deployment Plan for CakePHP

2009-10-26 Thread Sergio Pola
You must be aware in the checkout that the user who own the file is apache if you run a php script. On Oct 26, 3:28 am, frederic bollon fbol...@gmail.com wrote: Hi JeremyL You should give try to Fredistrano,http://code.google.com/p/fredistrano/. It automates the export of your sources from

Re: CakePHP Editor/IDE

2009-08-12 Thread Sergio Pola
I use eclipse-pdt. I add cake like a library and I the IDE provide code completation and phpdoc preview of the selected function or variable. If you want to have code completation for a model in the controller you must declare the variable explicity like $person = new Person(); and comment the

Re: A Search Behavior

2009-07-22 Thread pola
/pola/stuff/werkbank/emmall/generator/ trunk/output/ Notice: Hex number is too big: 0x1 in /home/pola/stuff/ werkbank/emmall/generator/trunk/output/vendors/Zend/Search/Lucene/ Storage/File.php on line 268 Notice: Hex number is too big: 0x1 in /home/pola/stuff/ werkbank/emmall

Re: Catching MySQL errors

2008-03-31 Thread Sergio Pola
I catch the error with a Caveman's method in cake 1.1 if( $this-Model-save($data)){ if($id == -1) $id = $this-Model-getLastInsertID(); } else { $error_msg = mysql_error(); if(strpos($error_msg, 'Duplicate entry') != -1 ){ // do something } } I