public function getObjectAttributesArray() { if (null !== $this->objectAttributes) { $objects = array(); foreach ($this->objectAttributes as $field) { $objects[strtolower($field->getId())] = $field->toArray(); } return $objects; } }