public function __construct(ContentService $contentService, array $data = array())
{
$this->contentService = $contentService;
foreach ($data as $propertyName => $propertyValue) {
$this->{$propertyName} = $propertyValue;
}
foreach ($this->internalFields as $field) {
$this->fields[$field->fieldDefIdentifier][$field->languageCode] = $field;
}
}