Re: HABTM with additional data scaffold update problem.

2009-08-28 Thread Defranco
Hi Fabio, I've tried your link, but it is invalid. Could you please try to posting it again? thanks On 28 ago, 08:51, fabiox <3bi...@gmail.com> wrote: > Hi DeFranco, i'm a CakePHP newbie and i'm handling on a quite similar topic > for > which i've op

Re: HABTM with additional data scaffold update problem.

2009-07-21 Thread Defranco
Here follows my dirty solution I've created: app_controller.php: function _beforeScaffold($method) { $this->_HABTM_scaffold_preserve($method); return parent::_beforeScaffold($method); } function _HABTM_scaffold_preserve($method){

Re: HABTM with additional data scaffold update problem.

2009-07-18 Thread Defranco
no ideas? :( --~--~-~--~~~---~--~~ 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...@googlegr

Re: HABTM with additional data scaffold update problem.

2009-07-17 Thread Defranco
More details about the tables: columns -- id name columns_panels -- id column_id panel_id width <-- This is the additional join table data, that get lost when I edit any columns fields. panels -- id name The problem is that when I update column using scaffold (e

Re: HABTM with additional data scaffold update problem.

2009-07-16 Thread Defranco
no ideas? --~--~-~--~~~---~--~~ 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...@googlegroup

HABTM with additional data scaffold update problem.

2009-07-15 Thread Defranco
Hi, My join table additional data get lost when I update any of the 2 models that has HABTM relation: I have 2 models that has HABTM relation and the join table between these has additional data. The problem is that when I edit and update any record on first model, it will delete and insert joi

Re: Console not reporting E_NOTICE?

2008-12-03 Thread Defranco
On Nov 20, 11:33 am, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote: > Defranco, > > Should report if you are in development mode (debug more than 0). > That is what that condition does. > > So, just increase the debug level and the E_NOTICE's will be showed. &

Fixtures not working on last nightly builds?

2008-12-03 Thread Defranco
Hi, I've tried several different nightly build versions (November/2008 versions) after RC3 and were unable to run test suites for my project. Looks like fixtures are not working properly and several tests drops due missing table issues. Have you experienced these problems with fixtures for the

Re: How to get code coverage analysis working?

2008-11-25 Thread Defranco
On Nov 19, 10:12 pm, mark_story <[EMAIL PROTECTED]> wrote: > To resurrect this threadcodecoveragewas broken for me on my new > computer.  But by changing line 115 of /cake/tests/lib/ > code_coverage_manager.php to > > xdebug_start_code_coverage(XDEBUG_CC_UNUSED); > > it started to work!  Hope it s

Console not reporting E_NOTICE?

2008-11-19 Thread Defranco
} Configure::write('log', LOG_NOTICE); } else { // removed by defranco: error_reporting(0); Configure::write('log', LOG_NOTICE); }

controller fixturize drops table in end, how to test data?

2008-10-22 Thread Defranco
Hi, Regarding controller testing using Test Suite on 1.2.RC3: How do I test resulting data after I run testAction and fixturize=true? The problem is that all all tables are dropped after testAction routine. For example if I run a simple testAction: $this->testAction( "/mycontroller/index"

Re: how to debug console execution?

2008-10-09 Thread Defranco
no one? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options,

Re: more problems with RC3 and tests

2008-10-07 Thread Defranco
Same problem here. The problem is that not only the documentation is suggesting this test case layout, but also bake when generating test case files (I think). rgds --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

Re: fixture var $import not working on 1.2.RC3 anymore.

2008-10-06 Thread Defranco
On Oct 6, 5:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I had that. Thought the problem was all me. I am still a bit fuzzy on > a lot of the testing stuff. > Try this: > var $import = array('model' => 'Foo', 'connection' => 'default'); > > I noticed that one of the examples in the Cook

fixture var $import not working on 1.2.RC3 anymore.

2008-10-06 Thread Defranco
Hi, I just downloaded 1.2.RC3 and noticed that $import is not working on RC3 as it was on RC2: Foo_fixture.php: 'Foo', 'records' => false); } ?> It should import the existing table foos from model Foo, but it is not working on RC3 and was working on RC2. I get an error: Missing database ta

how to debug console execution?

2008-09-09 Thread Defranco
Hi, Is possible to debug console shell execution using xDebug or Zend Debugger? I managed to debug any standard cake execution except console commands due looks like my eclipse IDE only allow debug using browser not by using CLI - but I'm not sure. kind regards Erico --~--~-~--~~

Re: assertEqual() Memory Leak?

2008-09-09 Thread Defranco
On Sep 3, 6:06 pm, mark_story <[EMAIL PROTECTED]> wrote: > Erico, > > I will look into this tonight, and get it fixed.  I'm not sure why the > buffering is there, perhaps someone else on the team knows why it is > there.  But as far as I can see there is no need for it to be there. Thank you!! --

assertEqual() Memory Leak?

2008-09-02 Thread Defranco
bug set to 1 kind regards defranco --~--~-~--~~~---~--~~ 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

Re: Test Suite 1.2: Importing joining table problem on HABTM fixture.

2008-04-27 Thread Defranco
no ideas? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more option

Test Suite 1.2: Importing joining table problem on HABTM fixture.

2008-04-24 Thread Defranco
Hi, I'm trying to import a Joining table on a fixture: var $import = array('model' => 'Model1Model2', 'records' => true); But when importing the table to test_suite database it is creating a table with just 1 primary key instead of 2 primary keys as original table has (model1_id or model2_i

Re: Custom SQL call problem (Solved! => My mistake)

2008-04-18 Thread Defranco
Solved! It was my mistake, not a bug: I had a user permission problem so it returned null for [Create Procedure] Thanks for your help Clark /defranco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Custom SQL call problem

2008-04-18 Thread Defranco
On 17 abr, 17:26, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > is it returning something that cake should be able to understand? try > debugging out the data in your *sql_dbo file before it gets put into > an array Its a nice idea, but what is sql_dbo file? I tried to Google it but it just po

Re: Custom SQL call problem

2008-04-17 Thread Defranco
no ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more optio

Re: Test Suite v1.2: $useDbConfig problem in model association.

2008-04-17 Thread Defranco
Should I report the fact that $model->setDataSource($dbConfig) do not affect related models as a bug or as an enhancement? Actually, if I set $model->setDataSource('test_suite'); Related model like $model->Model2 will still have $dbConfig='default' not $dbConfig='test_suite' as the main model

Re: id = 0 or id ='0' not allowed in cakephp?

2008-04-15 Thread Defranco
Bug reported: https://trac.cakephp.org/ticket/4488 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Re: Test Suite using a console or shell script

2008-04-15 Thread Defranco
On Mar 31, 8:48 am, Defranco <[EMAIL PROTECTED]> wrote: > On 27 mar, 16:16, Sliv <[EMAIL PROTECTED]> wrote: > > > I haven't tried this, but you may want to check it out: > > >http://lemoncake.wordpress.com/2007/06/24/cakephp-test-suite-shell/ looks like it d

Re: cake via console not logging php errors

2008-04-15 Thread Defranco
no ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more optio

Re: id = 0 or id ='0' not allowed in cakephp?

2008-04-15 Thread Defranco
On 14 abr, 19:24, Sam DeVore <[EMAIL PROTECTED]> wrote: > My guess is that it is related to the fact that php is loosely typed > and the ambiguity in something like '0' It looks like that cakephp is checking if $model->id is false to check if it has an id or not during save operation (if it do no

Re: id = 0 or id ='0' not allowed in cakephp?

2008-04-14 Thread Defranco
On 14 abr, 18:48, Stephen Orr <[EMAIL PROTECTED]> wrote: > MySQL specifically disallows an ID of 0. I've tested this manually by > inserting a test row with an ID of 0 into an auto_incremented column. > It ignores it, and gives it an ID of 1 instead. Ok, I agree with you regarding numeric PKs.

Re: id = 0 or id ='0' not allowed in cakephp?

2008-04-14 Thread Defranco
nobody? /erico --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

id = 0 or id ='0' not allowed in cakephp?

2008-04-11 Thread Defranco
Hi, I noticed that cakephp will not allow to update registers with primary key with 0 or '0' : for example: $this->data->id = '0'; // or ->id = 0 $this->save($this->data); Will not work if a register with id=0 already exists due it will understand it as id = false (new register) and will pr

Limiting the number of results in HABTM association

2008-04-10 Thread Defranco
Hi all, Is possible to limit the number of results in a habtm association query? I have a model1 that has a habtm with model2 - when i query $model1- >find(), an item of model1 has 50,000 model2 items and is crashing php Is possible to limit the number of items of model2 when I query for model

cake via console not logging php errors

2008-04-10 Thread Defranco
Hi, I'm running some routines on my applications via custom console scripts (shell); It is working fine, but when a php errors occurs, it is not generating any kind of message (it do not prints the error on console screen nor generate error on logs files like web interface does). So I checked a

Custom SQL call problem

2008-04-09 Thread Defranco
Hi, I'm attempting to read a stored procedure contents (its code) by issuing the following sql command: SHOW CREATE PROCEDURE my_stored_procedure That would return a table like: procedure | sql_mode | Create Procedure --- my_

Re: Test Suite using a console or shell script

2008-03-31 Thread Defranco
On 27 mar, 16:16, Sliv <[EMAIL PROTECTED]> wrote: > I haven't tried this, but you may want to check it out: > > http://lemoncake.wordpress.com/2007/06/24/cakephp-test-suite-shell/ Hi Sliv, Thank you very much, This is exactly what I'm looking for - I'll give a try and provide a feedback here,

Test Suite using a console or shell script

2008-03-27 Thread Defranco
Is there a standard way to run Test Suite 1.2 cases using a script (like console) or the only way is via web interface? I'm running it trying to run unix commands like: php webroot/test.php | lynx -stdin -dump but I want to know if there is a better way to do it. thanks Erico --~--~

Test suite 1.2: Is there a report for the Core Test Cases fails?

2008-03-27 Thread Defranco
Hi all, I'm running test suite 1.2 and I'm getting some core test cases fails on 1.2 beta. Is there a standard test report for the core test cases that core people got while released cake 1.2 beta so I could compare fails results to check if cake is working fine on my system. regards Erico --~

Re: Non Numeric index issues.

2008-03-27 Thread Defranco
No ideas? Also I found this bug on Trac that I think that is related with my issue: https://trac.cakephp.org/ticket/4224 /Erico --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this grou

Non Numeric index issues.

2008-03-26 Thread Defranco
Hi all, I'm having multiple problems using non numeric index with Mysql and CakePHP 1.2, specifically when it reaches a index that is a pure number -- AFAIK, cakephp supports non numeric index. Example: I have this table using a non numeric index: id* (varchar) | foo (varchar) xpt

Re: turn off certain associations for a model

2008-02-06 Thread Defranco
Hi Dardo, Very interesting this article. Thanks for the reply. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from thi

Re: sql view table vs controller logic

2008-02-05 Thread Defranco
Hi thank you for the clarification and for the nice tips! regards Erico --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscr

turn off certain associations for a model

2008-02-05 Thread Defranco
Hi, What is the best method on turning off temporally associations for a model on determined operations? I have a model that has too many associations and this is causing performance issues. If I could turn off certain associations for this model for specific finds cases that some association i

sql view table vs controller logic

2008-02-04 Thread Defranco
Hi all, Is acceptable to use a sql view table (a virtual sql table based on predefined permanent queries) instead a using a controller logic for a specific case? I have a complex query between several tables and looks like that would be too hard to do it using models relations and controller log

Re: Is possible to return variables from a element?

2007-11-01 Thread Defranco
; > > ?> Hi dardosordi, This is exactly what I'm looking for! thanks for your help /defranco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Is possible to return variables from a element?

2007-10-31 Thread Defranco
ables from it instead of just a string that it normally returns -- is it possible? -- is there some workaround that I can use to return a collection of variables (array for example) from a single render element? thanks DeFranco --~--~-~--~~~---~--~~ You received

Re: Accessing controller function from routes.php

2007-04-30 Thread Defranco
On Apr 25, 10:09 pm, Defranco <[EMAIL PROTECTED]> wrote: > include("../../cake/libs/model/model.php"); > include("../../cake/app_model.php"); > include("../models/MyModel.php"); //my model php file Latter I discovered that these includes on rout

Re: Pagination default order for each column

2007-04-30 Thread Defranco
no ideas? defranco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Accessing controller function from routes.php

2007-04-25 Thread Defranco
hp"); include("../models/MyModel.php"); //my model php file thank you /defranco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Re: Accessing controller function from routes.php

2007-04-25 Thread Defranco
no answers? its so difficulty like that? /defranco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Pagination default order for each column

2007-04-24 Thread Defranco
is a basic question - I'm new in Pagination. regards Defranco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscri

Accessing controller function from routes.php

2007-04-20 Thread Defranco
Hi, Is possible to call a specific controller function from Routes.php to retrieve data? I want to do this due I would like to retrieve Database data to use on route configuration. How would I do this? regards /defranco --~--~-~--~~~---~--~~ You received this