protected function newField($key, $propertyPath) { $field = clone $this->prototype; $field->setKey($key); $field->setPropertyPath($propertyPath === null ? null : '['.$propertyPath.']'); return $field; }