concrete/src/Entity/File/File.php
public function setUser(\Concrete\Core\Entity\User\User $user)
    {
        $this->author = $user;
        $this->save();
    }
public function setUser(\Concrete\Core\Entity\User\User $user)
    {
        $this->author = $user;
        $this->save();
    }
public function setUser ( \ Concrete \ Core \ Entity \ User \ User $ user ) { $ this -> author = $ user ; $ this -> save ( ) ; }
Set the user who authored the file.

@param \Concrete\Core\Entity\User\User $user
Set the user who authored the file .