removed unused token overhead

This commit is contained in:
Steffen Vogel 2010-12-10 22:46:40 +01:00
parent 8a5be48430
commit a5a4ab7621
4 changed files with 3 additions and 9 deletions

View file

@ -60,11 +60,6 @@ abstract class Entity {
/** @Column(type="string", nullable=false) */
protected $type;
/**
* @OneToMany(targetEntity="Token", mappedBy="entity", cascade={"remove", "persist"})
*/
protected $tokens = NULL;
/**
* @OneToMany(targetEntity="Property", mappedBy="entity", cascade={"remove", "persist"})
* @OrderBy({"key" = "ASC"})
@ -89,7 +84,6 @@ abstract class Entity {
$this->type = $type;
$this->uuid = (string) Util\UUID::mint();
$this->tokens = new Collections\ArrayCollection();
$this->properties = new Collections\ArrayCollection();
$this->parents = new Collections\ArrayCollection();
}

View file

@ -108,6 +108,6 @@ class VolkszaehlerModelAggregatorProxy extends \Volkszaehler\Model\Aggregator im
public function __sleep()
{
return array('__isInitialized__', 'id', 'uuid', 'type', 'tokens', 'properties', 'parents', 'children');
return array('__isInitialized__', 'id', 'uuid', 'type', 'properties', 'parents', 'children');
}
}

View file

@ -96,6 +96,6 @@ class VolkszaehlerModelChannelProxy extends \Volkszaehler\Model\Channel implemen
public function __sleep()
{
return array('__isInitialized__', 'id', 'uuid', 'type', 'tokens', 'properties', 'parents', 'data');
return array('__isInitialized__', 'id', 'uuid', 'type', 'properties', 'parents', 'data');
}
}

View file

@ -90,6 +90,6 @@ class VolkszaehlerModelEntityProxy extends \Volkszaehler\Model\Entity implements
public function __sleep()
{
return array('__isInitialized__', 'id', 'uuid', 'type', 'tokens', 'properties', 'parents');
return array('__isInitialized__', 'id', 'uuid', 'type', 'properties', 'parents');
}
}