Revision: 64
http://sourceforge.net/p/beeframework/code/64
Author: m_plomer
Date: 2013-08-24 14:04:11 +0000 (Sat, 24 Aug 2013)
Log Message:
-----------
- fixed Doctrine2 EnumType
Modified Paths:
--------------
trunk/framework/Bee/Persistence/Doctrine2/Types/EnumType.php
Modified: trunk/framework/Bee/Persistence/Doctrine2/Types/EnumType.php
===================================================================
--- trunk/framework/Bee/Persistence/Doctrine2/Types/EnumType.php 2013-08-24 13:53:48 UTC (rev 63)
+++ trunk/framework/Bee/Persistence/Doctrine2/Types/EnumType.php 2013-08-24 14:04:11 UTC (rev 64)
@@ -23,10 +23,6 @@
$reflClass = new \ReflectionClass($this);
$this->values = array_diff_key($reflClass->getConstants(), array('ENUM_NAME'));
$this->name = $reflClass->getConstant('ENUM_NAME');
-
- echo '<hr/>EnumType ' . get_class($this) . '<br/>';
- var_dump($this);
- echo '<hr/>';
}
protected function getValues() {
@@ -46,7 +42,6 @@
public function convertToDatabaseValue($value, AbstractPlatform $platform)
{
-
if (!in_array($value, $this->getValues())) {
throw new \InvalidArgumentException("Invalid '".$this->name."' value.");
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|