public function setValue($value = null, $fromDb = false)
{
if ($this->isNull($value)) {
$value = new ArrayObject();
}
if ($fromDb && $value instanceof BSONArray) {
$value = $this->convertToArray($value->getArrayCopy());
}
parent::setValue($value, $fromDb);
$this->value = $this->arr($this->value);
return $this;
}