private function initProperty(PropertyMetadata $metadata, $name)
{
$this->validated[$name] = true;
if (!isset($this->data[$name]) && !array_key_exists($name, $this->data)) {
$this->data[$name] = $this->persistedId === null ? $metadata->defaultValue : null;
}
if ($metadata->container) {
$property = $this->createPropertyContainer($metadata);
$property->setRawValue($this->data[$name]);
$this->data[$name] = $property;
} elseif ($this->data[$name] !== null) {
$this->internalSetValue($metadata, $name, $this->data[$name]);
unset($this->modified[$name]);
}
}