Re: [CakePHP : The Rapid Development Framework for PHP] #6508: Suggestion: Remove 'connect' from $_baseConfig in DboPostgres

2009-07-15 Thread CakePHP : The Rapid Development Framework for PHP
#6508: Suggestion:  Remove 'connect' from $_baseConfig in DboPostgres
-+--
Reporter:  cuppett   | Owner:   
Type:  Optimization  |Status:  new  
Priority:  Very Low  | Milestone:  1.2.x.x  
   Component:  PostgreSQL|   Version:  1.2 Final
Severity:  Trivial   |Resolution:   
Keywords:|   Php_version:  PHP 5
Cake_version:  1.2.3 |  
-+--
Comment (by cuppett):

 Have tentative fix in:[[BR]]
 [[BR]]
 
[http://thechaw.com/forks/cuppett/cakephp/commits/view/dd954b647548a4ab648d6ed4776c98bc7d276d94
 dd954b647548a4ab648d6ed4776c98bc7d276d94]
 [[BR]]
 [[BR]]
 {{{
 diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php
 b/cake/libs/model/datasources/dbo/dbo_postgres.php
 index bd6e984..23a7566 100644
 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php
 +++ b/cake/libs/model/datasources/dbo/dbo_postgres.php
 @@ -59,7 +59,6 @@ class DboPostgres extends DboSource {
   * @access protected
   */
 var $_baseConfig = array(
 -   'connect'   = 'pg_pconnect',
 'persistent' = true,
 'host' = 'localhost',
 'login' = 'root',
 @@ -861,4 +860,4 @@ class DboPostgres extends DboSource {
 }
 }
  }
 -?
 \ No newline at end of file
 +?
 }}}

-- 
Ticket URL: https://trac.cakephp.org/ticket/6508#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 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6510: Model-updateAll not adding single quotes when DB data type is date

2009-07-15 Thread CakePHP : The Rapid Development Framework for PHP
#6510: Model-updateAll not adding single quotes when DB data type is date
--+-
Reporter:  cstea  | Owner:  
 
Type:  Bug|Status:  
closed   
Priority:  Medium | Milestone:  
1.2.x.x  
   Component:  Model  |   Version:  1.2 
Final
Severity:  Normal |Resolution:  
invalid  
Keywords:  model, date, mysql, query, single, quotes  |   Php_version:  PHP 
5
Cake_version:  1.2.3.8166 |  
--+-
Comment (by gwoo):

 i would also like to add...Please consult the google group and search for
 tickets before creating a new one.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6510#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 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



[CakePHP : The Rapid Development Framework for PHP] #6511: associationForeignKey in $belongsTo

2009-07-15 Thread CakePHP : The Rapid Development Framework for PHP
#6511: associationForeignKey in $belongsTo
--+-
Reporter:  nlytnmnt   |  Type:  
Enhancement
  Status:  new|  Priority:  Medium  
   
   Milestone:  1.3.x.x| Component:  Model   
   
 Version:  1.2 Final  |  Severity:  Normal  
   
Keywords:  model belongsTo associationForeignKey  |   Php_version:  n/a 
   
Cake_version: |  
--+-
 This ticket is for petitioning to add an optional associationForeignKey to
 the belongsTo var in Model. Some workarounds exist, as cited below, but I
 was hoping cake could help by reducing some of that work. Let me know what
 you think. Thanks.
 
 [http://ragrawal.wordpress.com/2008/12/16/cakephp-using-
 associationforeignkey-with-belongsto/]

-- 
Ticket URL: https://trac.cakephp.org/ticket/6511
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 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



[CakePHP : The Rapid Development Framework for PHP] #6512: afterfind() not called when recursive=2 (using polymorphic behavior)

2009-07-15 Thread CakePHP : The Rapid Development Framework for PHP
#6512: afterfind() not called when recursive=2 (using polymorphic behavior)
---+
Reporter:  bmilesp |  Type:  Bug
  Status:  new |  Priority:  Medium 
   Milestone:  1.2.x.x | Component:  General
 Version:  1.2 Final   |  Severity:  Normal 
Keywords:  |   Php_version:  PHP 5  
Cake_version:  1.2.3.8166  |  
---+
 http://bakery.cakephp.org/articles/view/polymorphic-behavior
 created: User hasMany=Notes that has polymorphic associations with
 Product and Thingy Tables (i've used the exact code at:
 http://bakery.cakephp.org/articles/view/polymorphic-behavior, then created
 a users table with a hasmany association to Notes:

 CREATE TABLE `users` (
   `id` int(11) unsigned NOT NULL auto_increment,
   `username` varchar(30) NOT NULL,
   `password` varchar(30) NOT NULL,
   `created` datetime default NULL,
   `modified` datetime default NULL,
   PRIMARY KEY  (`id`)
 );

 When i call $this-Note-read(null,$note_id), i get the polymorphic
 associated data as expected. When i call $this-User-read(null,$user_id),
 even with $this-User-recursive = 2, i only get the Note data and none of
 the polymorphic associative data.

 I narrowed it down to the fact that the afterfind() method in the
 polymorphic behavior does not get called when its recursion depth is =2.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6512
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 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



[CakePHP : The Rapid Development Framework for PHP] #6513: When updating rows with Model::saveAll(), it is filling in missing fields with possibly invalid MySQL default values

2009-07-15 Thread CakePHP : The Rapid Development Framework for PHP
#6513: When updating rows with Model::saveAll(), it is filling in missing fields
with possibly invalid MySQL default values
---+
Reporter:  mattalexx   |  Type:  Bug   
  Status:  new |  Priority:  Medium
   Milestone:  1.2.x.x | Component:  Model 
 Version:  1.2 Final   |  Severity:  Normal
Keywords:  |   Php_version:  PHP 5 
Cake_version:  1.2.3.8166  |  
---+
 = Summary =
 When updating a row with Model::saveAll(), it is filling in missing fields
 with possibly invalid MySQL default values, thus invalidating the save.
 This behavior seems appropriate for inserts but not for updates.

 = Steps to reproduce =
  1. Set up a fresh install of version 1.2.3.8166.
  1. Set up a MySQL database.
  1. Run the included SQL file (see attached test.tar.gz).
  1. Overwrite your app folder with the one included (see attached
 test.tar.gz).
  1. Run http://www.example.com/widgets/test in your browser.

 = Expected results =
 Successful save.

 = Results =
 Failed save because of validation errors.

 = Notes =
 The save failed because saveAll noticed that the number field was absent
 from the data and tried to set it to its default (MySQL) value, 0, which
 is against validation. The value of that field as it is in the database is
 valid, however.

-- 
Ticket URL: https://trac.cakephp.org/ticket/6513
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 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #6507: Paginator::sort(), baked code does not work toggle

2009-07-15 Thread CakePHP : The Rapid Development Framework for PHP
#6507: Paginator::sort(), baked code does not work toggle
---+
Reporter:  slywalker   | Owner:
Type:  Bug |Status:  reopened  
Priority:  Medium  | Milestone:  1.2.x.x   
   Component:  View|   Version:  1.2 Final 
Severity:  Normal  |Resolution:
Keywords:  |   Php_version:  PHP 4 = 4.3.2
Cake_version:  1.2.3.8166  |  
---+
Changes (by andraskende):

  * status:  closed = reopened
  * resolution:  worksforme =

Comment:

 The paginator can't toggle direction (stays direction:asc) with the
 following code:

 ?php
 class TweetsController extends AppController {
   var $scaffold;
 }
 ?

 /tweets/index/page:0/sort:name/direction:asc


 Also on views its not toggling direction with : $paginator-sort('name');
 unless the
 model name is specified $paginator-sort('Name', 'Post.name');

 Should use defaultModel ?

 I think this problem appeared few months ago got fixed but its happening
 again.

 Used latest CakePHP 1.2 #8233 for this testing..

 Thank you,

-- 
Ticket URL: https://trac.cakephp.org/ticket/6507#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 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~--~~~~--~~--~--~---