public static function createDetachedEntity(string $objectName, array $data)
    {
        $detachedEntity = new $objectName;

        self::updateEntityFromArray($detachedEntity, $data);

        return $detachedEntity;
    }