/**
  * @covers MarketMeSuite\Phranken\Database\Object\DbObject::toArray
  */
 public function testToArray2()
 {
     $this->object->setToArrayAllowNull(true);
     $this->object->fromArray($this->validDbArrayNullValues);
     $expected = $this->object->toArray($this->validDbArrayNullValues);
     $actual = $this->validDbArrayNullValues;
     $this->assertSame($expected, $actual, 'The object should be able to convert from and array to and object and back again with no issues');
 }
 /**
  * loads a mongo document array into this object structure
  * @param  array  $data A document array from a mongo query
  */
 public function fromArray(array $data)
 {
     parent::fromArray($data);
     $this->parseDynamicProperties($data);
 }