src/Service/EntityManager/OpinionManager.php
/**
     * Prepare all Opinion entities before persist.
     */
Prepare all Opinion entities before persist.
Prepare all Opinion entities before persist .
public function prepare(Opinion $opinion, Reduction $reduction, ?string $clientIp, User $user): Opinion
    {
        $opinion->setReduction($reduction);
        $opinion->setClientIp($clientIp);
        $opinion->setUser($user);
        return $opinion;
    }
public function prepare ( Opinion $ opinion , Reduction $ reduction , ? string $ clientIp , User $ user ) : Opinion { $ opinion -> setReduction ( $ reduction ) ; $ opinion -> setClientIp ( $ clientIp ) ; $ opinion -> setUser ( $ user ) ; return $ opinion ; }
Prepare all Opinion entities before persist.
Prepare all Opinion entities before persist .