lib/components/db/behaviors/Photo.php
public function setRawPhoto($photo)
    {
        if (empty($photo)) {
            return true;
        }
        if (!($photo instanceof FileInterface)) {
            $photo = RawFile::createRawInstance($photo);
        }

        return $this->setStorage($photo);
    }
public function setRawPhoto($photo)
    {
        if (empty($photo)) {
            return true;
        }
        if (!($photo instanceof FileInterface)) {
            $photo = RawFile::createRawInstance($photo);
        }

        return $this->setStorage($photo);
    }
Set raw photo.

@param [[@doctodo param_type:photo]] $photo [[@doctodo param_description:photo]]

@return [[@doctodo return_type:setRawPhoto]] [[@doctodo return_description:setRawPhoto]]