public function wakeupReflection(ReflectionService $reflService)
{
$this->reflClass = $reflService->getClass($this->name);
$this->namespace = $reflService->getClassNamespace($this->name);
$fieldNames = array_merge($this->getFieldNames(), $this->getAssociationNames());
foreach ($fieldNames as $fieldName) {
$reflField = isset($this->mappings[$fieldName]['declared']) ? new ReflectionProperty($this->mappings[$fieldName]['declared'], $fieldName) : $this->reflClass->getProperty($fieldName);
$reflField->setAccessible(true);
$this->reflFields[$fieldName] = $reflField;
}
}