removed unused token overhead
This commit is contained in:
parent
8a5be48430
commit
a5a4ab7621
4 changed files with 3 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
|
@ -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');
|
||||
}
|
||||
}
|
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue