Permalink
Browse files

BackwardsCompatibilityBreak - fActiveRecord::reflect() now returns an…

… associative array instead of a string
  • Loading branch information...
wbond committed May 10, 2011
1 parent cc89cb2 commit 5b17e6e69166d4aabc0b97aa4e0804836b882edf
Showing with 5 additions and 4 deletions.
  1. +5 −4 classes/fActiveRecord.php
@@ -15,7 +15,8 @@
* @package Flourish
* @link http://flourishlib.com/fActiveRecord
*
* @version 1.0.0b77
* @version 1.0.0b78
* @changes 1.0.0b78 Backwards Compatibility Break - ::reflect() now returns an associative array instead of a string [wb, 2011-05-10]
* @changes 1.0.0b77 Fixed ::inspect() to not throw an fProgrammerException when a valid element has a `NULL` value [wb, 2011-05-10]
* @changes 1.0.0b76 Added ::clearIdentityMap() [wb, 2011-05-09]
* @changes 1.0.0b75 Fixed a bug where child records of a record with a non-auto-incrementing primary key would not be saved properly for a new record [wb, 2010-12-06]
@@ -2176,10 +2177,10 @@ protected function prepare($column, $formatting=NULL)
/**
* Generates a pre-formatted block of text containing the method signatures for all methods (including dynamic ones)
* Generates the method signatures for all methods (including dynamic ones)
*
* @param boolean $include_doc_comments If the doc block comments for each method should be included
* @return string A preformatted block of text with the method signatures and optionally the doc comment
* @return array An associative array of method name => method signature
*/
public function reflect($include_doc_comments=FALSE)
{
@@ -2428,7 +2429,7 @@ public function reflect($include_doc_comments=FALSE)
ksort($signatures);
return join("\n\n", $signatures);
return $signatures;
}

0 comments on commit 5b17e6e

Please sign in to comment.