[Beeframework-svn] SF.net SVN: beeframework:[73] trunk/framework/Bee
Brought to you by:
b_hartmann,
m_plomer
|
From: <m_p...@us...> - 2013-08-29 10:18:56
|
Revision: 73
http://sourceforge.net/p/beeframework/code/73
Author: m_plomer
Date: 2013-08-29 10:18:51 +0000 (Thu, 29 Aug 2013)
Log Message:
-----------
- EnumBase fix (toString)
Modified Paths:
--------------
trunk/framework/Bee/Persistence/Doctrine2/Log4PHPLogger.php
trunk/framework/Bee/Utils/EnumBase.php
Modified: trunk/framework/Bee/Persistence/Doctrine2/Log4PHPLogger.php
===================================================================
--- trunk/framework/Bee/Persistence/Doctrine2/Log4PHPLogger.php 2013-08-27 09:05:44 UTC (rev 72)
+++ trunk/framework/Bee/Persistence/Doctrine2/Log4PHPLogger.php 2013-08-29 10:18:51 UTC (rev 73)
@@ -46,7 +46,7 @@
* @return void
*/
public function startQuery($sql, array $params = null, array $types = null) {
- self::getLog()->trace('SQL : [' . $sql . '] PARAMS : [' . implode(', ', $params) . '] TYPES: ['. implode(', ', $types) . ']');
+ self::getLog()->trace('SQL : [' . $sql . '] PARAMS : [' . var_export($params) . '] TYPES: ['. implode(', ', $types) . ']');
$this->startTime = microtime(true);
}
Modified: trunk/framework/Bee/Utils/EnumBase.php
===================================================================
--- trunk/framework/Bee/Utils/EnumBase.php 2013-08-27 09:05:44 UTC (rev 72)
+++ trunk/framework/Bee/Utils/EnumBase.php 2013-08-29 10:18:51 UTC (rev 73)
@@ -118,4 +118,10 @@
private function __wakeup() {
}
+
+ // todo:
+ function __toString() {
+ return $this->val();
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|