Entity/EntityService.php
private function saveValues(array $values, $prefix, SessionInterface $session)
    {
        foreach ($values as $name => $value) {
            $session->set($prefix . $name, $value);
        }
    }
private function saveValues(array $values, $prefix, SessionInterface $session)
    {
        foreach ($values as $name => $value) {
            $session->set($prefix . $name, $value);
        }
    }
private function saveValues ( array $ values , $ prefix , SessionInterface $ session ) { foreach ( $ values as $ name => $ value ) { $ session -> set ( $ prefix . $ name , $ value ) ; } }
Saves into the session all the key-value pairs from the array, adding to their keys the specified prefix.

@param array $values
@param string $prefix
@param \Symfony\Component\HttpFoundation\Session\SessionInterface $session
Saves into the session all the key - value pairs from the array adding to their keys the specified prefix .