src/User/UserActiveRecordModel.php
public function setUserData(User $user)
    {
        $userVarArray = get_object_vars($user);

        foreach ($userVarArray as $key => $value) {
            if ($value !== null) {
                $this->{$key} = $value;
            }
        }
    }
public function setUserData(User $user)
    {
        $userVarArray = get_object_vars($user);

        foreach ($userVarArray as $key => $value) {
            if ($value !== null) {
                $this->{$key} = $value;
            }
        }
    }
public function setUserData ( User $ user ) { $ userVarArray = get_object_vars ( $ user ) ; foreach ( $ userVarArray as $ key => $ value ) { if ( $ value !== null ) { $ this -> { $ key } = $ value ; } } }
Dynamicly set user properties to its value.

@param User            $user user object
Dynamicly set user properties to its value .