Re: [CakePHP : The Rapid Development Framework for PHP] #3270: Allow errors to be logged in production (DEBUG 0)

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#3270: Allow errors to be logged in production (DEBUG 0)
--+-
Reporter:  maular | Owner:  
nate   
Type:  Enhancement|Status:  
new
Priority:  Low| Milestone:  
1.3.x.x
   Component:  Core Libs  |   Version:  
   
Severity:  Minor  |Resolution:  
   
Keywords:  error_log log_errors debugger error_reporting  |   Php_version:  
n/a
Cake_version:  5672   |  
--+-
Changes (by nate):

  * owner:  => nate
  * status:  reopened => new
  * version:  RC1 =>
  * php_version:  PHP 5 => n/a
  * milestone:  1.2.x.x => 1.3.x.x

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #3270: Allow errors to be logged in production (DEBUG 0)

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#3270: Allow errors to be logged in production (DEBUG 0)
--+-
Reporter:  maular | Owner:  

Type:  Enhancement|Status:  
reopened
Priority:  Low| Milestone:  
1.2.x.x 
   Component:  Core Libs  |   Version:  
RC1 
Severity:  Minor  |Resolution:  

Keywords:  error_log log_errors debugger error_reporting  |   Php_version:  
PHP 5   
Cake_version:  5672   |  
--+-
Changes (by aidan):

  * status:  closed => reopened
  * resolution:  wontfix =>

Comment:

 I think we should examine a few givens:
 a) Software will never, ever, ever be totally bug free - there's always
 going to be a chain of completely unpredictable events that somehow, are
 going to lead to an application error
 b) To fix errors, the developer needs to know about them
 c) When an application is running on the production environment, we don't
 want the user to see any errors (unless the error messages are going to
 help them resolve the problem).

 Cake has chosen to not log errors in production mode - this assumes that
 code is either completely bug free (against presupposition a), or that
 developers will somehow discover these bugs through sheer intuition.

 Yes - cake is powerful and flexible enough to override this behavior - but
 why has hiding errors from the user AND developer been made the standard
 behavior? In what possible scenario would this behavior be desirable?

 I apologise for the aggressive tone of this update - I aim to provoke some
 discussion as to the reasons why this behavior was decided on, and
 hopefully persuade the developers that it simply doesn't make sense in a
 real world context.

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #5973: When in debugging mode, announce if a model is being made automatically

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#5973: When in debugging mode, announce if a model is being made automatically
--+-
Reporter:  Aijo   |  Type:  Enhancement 
  
  Status:  new|  Priority:  Low 
  
   Milestone:  1.2.x.x| Component:  Error 
Handling
 Version:  1.2 Final  |  Severity:  Minor   
  
Keywords:  find all left join id primary key  |   Php_version:  n/a 
  
Cake_version: |  
--+-
 If debug is set to 2 or above ''(via configure::write('debug', 2); )'' and
 a model is being made automatically due to a model file not being present
 even though a belongsTo relationship exists, then in the debug output
 announce that 'Some models are being made automatically'.[[BR]][[BR]]


 This way if someone wishes automatic models to be used then it only adds
 one line of clutter to the debug. But if a model is being made
 automatically because of a naming convention oversight or something
 similar then they can be alerted to the fact that
 a model is being made automatically.[[BR]][[BR]]


 After checking my code several times and it proving to be perfect, I was
 still receiving an error with the SQL query, it was looking for model.id
 instead of the define primaryKey in my model, I had no idea cakephp could
 make models automatically in the case of one missing. It turned out that I
 hadn't named my file with the appropriate naming conventions (it was named
 clientlocations.php insetad of client_locations.php). This nature of error
 wasn't covered by the debugger and I feel it would help new bakers to
 diagnose problems with Model::find();[[BR]][[BR]]

 Thanks for your time.

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #5972: Test Suite in 1.2 final uses much more memory than RC1

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#5972: Test Suite in 1.2 final uses much more memory than RC1
-+--
Reporter:  maular| Owner:   
Type:  Optimization  |Status:  new  
Priority:  Medium| Milestone:  1.2.x.x  
   Component:  Test Suite|   Version:  1.2 Final
Severity:  Major |Resolution:   
Keywords:|   Php_version:  PHP 5
Cake_version:  7972  |  
-+--
Comment (by maular):

 This memory increase is due to the ob_start() additions in r7162.

 In our application tests (same as above) all asserts pass, so just this
 change:

 {{{
 Index: cake_reporter.php
 ===
 --- cake_reporter.php   (revision 7973)
 +++ cake_reporter.php   (working copy)
 @@ -123,7 +123,7 @@
   * @access public
   */
 function paintPass($message) {
 -   ob_start();
 +   //ob_start();
 parent::paintPass($message);

 if ($this->_show_passes) {

 }}}

 results in this memory usage:

 {{{
 memory_get_usage: 230922112
 memory_get_peak_usage: 230977872
 }}}

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #5972: Test Suite in 1.2 final uses much more memory than RC1

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#5972: Test Suite in 1.2 final uses much more memory than RC1
--+-
Reporter:  maular |  Type:  Optimization
  Status:  new|  Priority:  Medium  
   Milestone:  1.2.x.x| Component:  Test Suite  
 Version:  1.2 Final  |  Severity:  Major   
Keywords: |   Php_version:  PHP 5   
Cake_version:  7972   |  
--+-
 I just updated from RC1 to 1.2 Final, and have found that the memory
 required to execute the test suite on our application is enormously
 increased.

 {{{
 All application tests (10829 asserts)

 Cake 1.2 final (r7972):
 memory_get_usage: 675989232
 memory_get_peak_usage: 676045008

 Cake 1.2 RC1 (r7121):
 memory_get_usage: 40136456
 memory_get_peak_usage: 40698416
 }}}

 I will post back when I narrow this down more.

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #5971: Tree reorder method causes fatal error on PHP 4

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#5971: Tree reorder method causes fatal error on PHP 4
---+
Reporter:  pshevtsov   |  Type:  Bug   
  Status:  new |  Priority:  Medium
   Milestone:  1.2.x.x | Component:  Behaviors 
 Version:  1.2 Final   |  Severity:  Critical  
Keywords:  |   Php_version:  PHP 4 >= 4.3.2
Cake_version:  1.2.0.7962  |  
---+
 When I call reorder method in my controller's action code e.g.:
 {{{
 #!php
 MyTreeModel->reorder();
   }
 }
 ?>
 }}}

 I get the following error message:
   '''Fatal error''':  Call to undefined function:  verify() in
 '''cake/libs/model/behaviors/tree.php''' on line '''621'''

 Also when I call reorder method such way:
 {{{
 #!php
 MyTreeModel->reorder(array('validate' => false));
   }
 }
 ?>
 }}}

 I get the following error message:
   '''Fatal error''':  Call to undefined function:  children() in
 '''cake/libs/model/behaviors/tree.php''' on line '''628'''



 Also when I try to run test cases for tree behaviour I also get
   '''Fatal error''':  Call to undefined function:  verify() in
 '''cake/libs/model/behaviors/tree.php''' on line '''621'''

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #5969: Add ability to add/remove conditions to Containable

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#5969: Add ability to add/remove conditions to Containable
+---
Reporter:  _thief_  | Owner: 
Type:  Enhancement  |Status:  new
Priority:  Very Low | Milestone:  1.3.x.x
   Component:  Components   |   Version: 
Severity:  Minor|Resolution: 
Keywords:  containable, conditions  |   Php_version:  n/a
Cake_version:   |  
+---
Changes (by mark_story):

  * version:  1.2 Final =>
  * type:  Bug => Enhancement

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #5970: PaginatorHelper::__pageLink() is not reference $options['model']

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#5970: PaginatorHelper::__pageLink() is not reference $options['model']
+---
Reporter:  hummer   | Owner:   
Type:  Bug  |Status:  new  
Priority:  Medium   | Milestone:  1.2.x.x  
   Component:  Helpers  |   Version:  1.2 Final
Severity:  Normal   |Resolution:   
Keywords:   |   Php_version:  n/a  
Cake_version:   |  
+---
Comment (by hummer):

 ignore 'paginator.test.2.php'.

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #5970: PaginatorHelper::__pageLink() is not reference $options['model']

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#5970: PaginatorHelper::__pageLink() is not reference $options['model']
--+-
Reporter:  hummer |  Type:  Bug
  Status:  new|  Priority:  Medium 
   Milestone:  1.2.x.x| Component:  Helpers
 Version:  1.2 Final  |  Severity:  Normal 
Keywords: |   Php_version:  n/a
Cake_version: |  
--+-
 This happens only for Multiple-Model.

 I am sorry, because it is not good at English, see Patchfile & testcase.
 thank you.

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #5969: Add ability to add/remove conditions to Containable

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#5969: Add ability to add/remove conditions to Containable
+---
Reporter:  _thief_  | Owner:   
Type:  Bug  |Status:  new  
Priority:  Very Low | Milestone:  1.3.x.x  
   Component:  Components   |   Version:  1.2 Final
Severity:  Minor|Resolution:   
Keywords:  containable, conditions  |   Php_version:  n/a  
Cake_version:   |  
+---
Comment (by _thief_):

 sorry meant to file as an enhancement

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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] #5969: Add ability to add/remove conditions to Containable

2009-01-08 Thread CakePHP : The Rapid Development Framework for PHP
#5969: Add ability to add/remove conditions to Containable
+---
Reporter:  _thief_  |  Type:  Bug   
  Status:  new  |  Priority:  Very Low  
   Milestone:  1.3.x.x  | Component:  Components
 Version:  1.2 Final|  Severity:  Minor 
Keywords:  containable, conditions  |   Php_version:  n/a   
Cake_version:   |  
+---
 At the moment, if you specify a conditions array when using the
 containable behavior it overwrites the existing defined conditions.
 [[BR]][[BR]]

 It would be nice to have the ability to just add or remove a condition to
 the existing ones defined in the model.
 [[BR]]
 eg.
 {{{
 $this->Post->contain('Comment' => array(
   'addCondition' => array('Comment.moderated' => 1)
 ))
 }}}

 This would mean in the future you could freely change the conditions in
 the original join definition in the model without having to worry about
 breaking code anywhere you've overwritten conditions with Containable.

-- 
Ticket URL: 
CakePHP : The Rapid Development Framework for PHP 
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
-~--~~~~--~~--~--~---