Revision: 61
http://sourceforge.net/p/beeframework/code/61
Author: m_plomer
Date: 2013-08-24 13:26:16 +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 12:48:31 UTC (rev 60)
+++ trunk/framework/Bee/Persistence/Doctrine2/Types/EnumType.php 2013-08-24 13:26:16 UTC (rev 61)
@@ -9,18 +9,22 @@
*/
abstract class EnumType extends Type
{
- protected $name;
-
/**
* @var \ReflectionClass
*/
- protected $reflClass;
+ private $reflClass;
private $values;
+ private $name;
+
public function __construct() {
$this->reflClass = new \ReflectionClass($this);
- $this->values = $this->reflClass->getConstants();
+ $this->values = array_diff_key($this->reflClass->getConstants(), array('ENUM_NAME'));
+
+ echo '<hr/>EnumType ' . get_class($this) . '<br/>';
+ var_dump($this);
+ echo '<hr/>';
}
protected function getValues() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|