Re: [CakePHP : The Rapid Development Framework for PHP] #5579: When saving HABTM data, it's deleting the wrong records
#5579: When saving HABTM data, it's deleting the wrong records ---+ Reporter: joelstein | Owner: Type: Bug |Status: reopened Priority: Critical| Milestone: 1.2.x.x Component: Model | Version: RC3 Severity: Critical|Resolution: Keywords: model association primarykey habtm save delete | Php_version: n/a Cake_version: | ---+ Changes (by eimermusic): * status: closed = reopened * resolution: needmoreinfo = Comment: The tests do not fail in the core because the definition of the Models do not cover the area that causes the problem.[[BR]] The problem occurs when habtm is defined from both sides. Making Tag hbtm Article will fail the tests in the core for me. see diff as requested. -- Ticket URL: https://trac.cakephp.org/ticket/5579#comment:3 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5578: CakeTestFixture::init() brakes ClassRegistry::config() when importing configs from CakeTestFixture::$import
#5578: CakeTestFixture::init() brakes ClassRegistry::config() when importing configs from CakeTestFixture::$import --+- Reporter: rafaelbandeira3| Owner: Type: Bug|Status: closed Priority: Medium | Milestone: 1.2.x.x Component: Test Suite | Version: RC3 Severity: Major |Resolution: needmoreinfo Keywords: fixture, classregistry::config, testsuite | Php_version: n/a Cake_version: | --+- Changes (by mark_story): * status: reopened = closed * resolution: = needmoreinfo Comment: Have you tried a recent SVN? I've been able to import models, into fixture tables without problem using {{{ClassRegistry::init()}}}. The models must be built using the default config when doing the imports. If they didn't the import would fail. The models built during the import are also removed from the ClassRegistry. [[BR]] [[BR]] As for testing the test suite there are existing test cases for both the cake_test_fixture and cake_test_case please look at those for how to test the test_suite. -- Ticket URL: https://trac.cakephp.org/ticket/5578#comment:3 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5578: CakeTestFixture::init() brakes ClassRegistry::config() when importing configs from CakeTestFixture::$import
#5578: CakeTestFixture::init() brakes ClassRegistry::config() when importing configs from CakeTestFixture::$import --+- Reporter: rafaelbandeira3| Owner: Type: Bug|Status: reopened Priority: Medium | Milestone: 1.2.x.x Component: Test Suite | Version: RC3 Severity: Major |Resolution: Keywords: fixture, classregistry::config, testsuite | Php_version: n/a Cake_version: | --+- Comment (by rafaelbandeira3): what I have to do then is to load model using {{{ $this-ModelName = ClassRegistry::init(array('class' = 'ModelName', 'ds' = 'test_suite')); }}} and then setting all it's linked models' $useDbConfig to 'test_suite', or else I'll be manipulating development db data... -- Ticket URL: https://trac.cakephp.org/ticket/5578#comment:5 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5578: CakeTestFixture::init() brakes ClassRegistry::config() when importing configs from CakeTestFixture::$import
#5578: CakeTestFixture::init() brakes ClassRegistry::config() when importing configs from CakeTestFixture::$import --+- Reporter: rafaelbandeira3| Owner: Type: Bug|Status: reopened Priority: Medium | Milestone: 1.2.x.x Component: Test Suite | Version: RC3 Severity: Major |Resolution: Keywords: fixture, classregistry::config, testsuite | Php_version: n/a Cake_version: | --+- Changes (by rafaelbandeira3): * status: closed = reopened * resolution: needmoreinfo = Comment: sorry, I knew it wasn't very usefull. The thing is, I don't know exactly how to test test suite, so I'll try to show where the problem lies. on cake_test_fixture.php line 79: {{{ $connection = isset($import['connection']) ? $import['connection'] : 'default'; ClassRegistry::config(array('ds' = $connection)); $model = ClassRegistry::init($import['model']); }}} so when trying the approach shown by Tim Koschützki on http://debuggable.com/posts/testing-models-in-cakephp---now-let%27s-get- rid-of-the-unnecessary-modeltest-classes-!:4890ed55-be28-4d4a-ba4c- 7fd64834cda3 , wich I think that is the intended one, what happens is that after CakeTestCase::start() initialize fixtures, if you imported a model configuration, it will overwrite the default ds config on ClassRegistry, wich for test suite is test_suite, thus models loaded as specified in the refered link and all it's associated models, are going to be initialized with 'default' ds. And no you can't change the 'ds' for CakeTestFixture::$import, as it should import from 'default' 'ds' it's structure. -- Ticket URL: https://trac.cakephp.org/ticket/5578#comment:2 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5549: Autogenerated unit tests trigger an error, where there are multiple fixtures
#5549: Autogenerated unit tests trigger an error, where there are multiple fixtures -+-- Reporter: dz| Owner: mark_story Type: Bug |Status: closed Priority: Medium| Milestone: 1.2.x.x Component: Test Suite| Version: RC3 Severity: Minor |Resolution: fixed Keywords: unit tests, fixtures, dz | Php_version: PHP 5 Cake_version: revision 7710 | -+-- Comment (by mark_story): sorry that was changeset [7747] -- Ticket URL: https://trac.cakephp.org/ticket/5549#comment:6 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #2056: [PATCH] afterFind and beforeFind methods should be called on associated models
#2056: [PATCH] afterFind and beforeFind methods should be called on associated models +--- Reporter: maular | Owner: Type: Enhancement |Status: new Priority: Medium | Milestone: 1.2.x.x Component: Model| Version: RC1 Severity: Trivial |Resolution: Keywords: | Php_version: PHP 4 = 4.3.0 Cake_version: 4451 | +--- Comment (by rafaelbandeira3): In the current implementation it would break Containable behavior too, as it would back the associations and then dbo would use them as the recursive would require to... So it would have to be patched too -- Ticket URL: https://trac.cakephp.org/ticket/2056#comment:10 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5578: CakeTestFixture::init() brakes ClassRegistry::config() when importing configs from CakeTestFixture::$import
#5578: CakeTestFixture::init() brakes ClassRegistry::config() when importing configs from CakeTestFixture::$import --+- Reporter: rafaelbandeira3| Owner: mark_story Type: Bug|Status: reopened Priority: Medium | Milestone: 1.2.x.x Component: Test Suite | Version: RC3 Severity: Major |Resolution: Keywords: fixture, classregistry::config, testsuite | Php_version: n/a Cake_version: | --+- Changes (by rafaelbandeira3): * status: closed = reopened * resolution: fixed = Comment: It won't solve the problem as linked models are going to be loaded with the configured 'ds' what will lead to the necessity of having all fixtures for all models loaded in every test. The use of the ClassRegistry::config() is necessary, but then it should be reverted. -- Ticket URL: https://trac.cakephp.org/ticket/5578#comment:9 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5608: Session variables getting lost on multi-part form posts
#5608: Session variables getting lost on multi-part form posts +--- Reporter: japicka | Owner: Type: Bug |Status: closed Priority: High | Milestone: 1.2.x.x Component: Session | Version: RC2 Severity: Major|Resolution: invalid Keywords: | Php_version: n/a Cake_version: | +--- Changes (by phpnut): * status: new = closed * resolution: = invalid Comment: You are stopping the code from completing. -- Ticket URL: https://trac.cakephp.org/ticket/5608#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5602: problemas con cakephp and firebird
#5602: problemas con cakephp and firebird -+-- Reporter: luciano | Owner: Type: Bug |Status: new Priority: High | Milestone: Component: Firebird | Version: RC3 Severity: Major |Resolution: Keywords: habtm Firebird | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3| -+-- Comment (by villas): For those that don't know Spanish...[[BR]] I tried to do an example of Posts and Tags using HABTM with the FirebirdDB but when I use find() it returns the Posts data but not the associated Tags. I tried the same example using MySql and it works well. I believe that the Firebird driver is failing. When I eliminate the association and run the query: [[BR]] $this-Post-query(SELECT Post.id,Post.cuerpo,Post.fecha,Tag.id,Tag.nombre FROM posts AS Post,tags AS Tag,posts_tags AS PostsTag WHERE ((Post.id=PostsTag.post_id)AND(PostsTag.tag_id=Tag.id));); it responds perfectly, I mean it returns the Tags associated with the Posts. -- Ticket URL: https://trac.cakephp.org/ticket/5602#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5609: AjaxHelper: drag() and scriptaculous changes
#5609: AjaxHelper: drag() and scriptaculous changes +--- Reporter: tad | Type: Enhancement Status: new | Priority: Medium Milestone: 1.2.x.x | Component: General Version: RC3 | Severity: Normal Keywords: | Php_version: n/a Cake_version: | +--- drag() doesn't support a number of useful options available in the script.aculo.us library, including:[[BR]] [[BR]] - scroll[[BR]] - scrollSensitivity[[BR]] - onStart[[BR]] - onDrag (supercedes 'change')[[BR]] - onEnd[[BR]] -- Ticket URL: https://trac.cakephp.org/ticket/5609 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5601: Cache::write fails when array('duration'='xxx') set as $config
#5601: Cache::write fails when array('duration'='xxx') set as $config ---+ Reporter: pviojo | Owner: Type: Bug |Status: new Priority: Medium | Milestone: 1.2.x.x Component: Cache | Version: RC3 Severity: Normal |Resolution: Keywords: | Php_version: PHP 5 Cake_version: | ---+ Comment (by pviojo): The only difference between your approach and mine is that you're passing 'config'='default', that wasn't necessary on previous releases of 1.2, so I think it would be nice if $config is set to 'default' if not present en $config array. -- Ticket URL: https://trac.cakephp.org/ticket/5601#comment:4 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
[CakePHP : The Rapid Development Framework for PHP] #5610: TextHelper does not play weel with Unicode
#5610: TextHelper does not play weel with Unicode --+- Reporter: jose.zap | Type: Bug Status: new| Priority: Medium Milestone: 1.2.x.x| Component: Helpers Version: RC3| Severity: Normal Keywords: utf8 unicod multibyte text helper | Php_version: n/a Cake_version: | --+- I noticed that the text helper messed up my strings when truncated with it. Not sure if this remains as a enhancement or a bug, but it would be great to have it after the final release. I'm attaching a test case that shows the problem in TextHelper::truncate() and a possible fix for that -- Ticket URL: https://trac.cakephp.org/ticket/5610 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #4622: Localisation fallback on individual strings
#4622: Localisation fallback on individual strings +--- Reporter: maular | Owner: Type: Enhancement |Status: closed Priority: Medium | Milestone: 1.2.x.x Component: i18n/l10n| Version: RC1 Severity: Minor|Resolution: worksforme Keywords: i18n l10n locale fallbackLocale | Php_version: n/a Cake_version: 6813 | +--- Changes (by phpnut): * status: new = closed * resolution: = worksforme Comment: msgid with an empty msgstr return msgid -- Ticket URL: https://trac.cakephp.org/ticket/4622#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5411: Heavy highly load CPU with App::import
#5411: Heavy highly load CPU with App::import -+-- Reporter: naonak| Owner: Type: Optimization |Status: closed Priority: High | Milestone: 1.2.x.x Component: General | Version: RC2 Severity: Normal|Resolution: fixed Keywords:| Php_version: n/a Cake_version: rev 7591 | -+-- Changes (by phpnut): * status: new = closed * resolution: = fixed -- Ticket URL: https://trac.cakephp.org/ticket/5411#comment:1 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #3972: Database sessions should allow for additional fields
#3972: Database sessions should allow for additional fields -+-- Reporter: ahuino1 | Owner: phpnut Type: Enhancement |Status: new Priority: Critical | Milestone: 1.2.x.x Component: Session | Version: RC1 Severity: Trivial |Resolution: Keywords: database sessions ahuino1 grigri | Php_version: PHP 5 Cake_version:| -+-- Changes (by phpnut): * owner: = phpnut -- Ticket URL: https://trac.cakephp.org/ticket/3972#comment:4 CakePHP : The Rapid Development Framework for PHP https://trac.cakephp.org/ Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups tickets cakephp group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~--~~~~--~~--~--~---