lib/models/User.php
public function getPhotoUrl($size = 200)
    {
        if (!empty($this->individual)
            && $this->individual->getBehavior('Photo') !== null) {
            $indPhoto = $this->individual->getPhotoUrl($size);
            if ($indPhoto) {
                return $indPhoto;
            }
        }
        if ($this->getBehavior('Photo') !== null) {
            return $this->getBehavior('Photo')->getPhotoUrl($size);
        }

        return false;
    }
public function getPhotoUrl($size = 200)
    {
        if (!empty($this->individual)
            && $this->individual->getBehavior('Photo') !== null) {
            $indPhoto = $this->individual->getPhotoUrl($size);
            if ($indPhoto) {
                return $indPhoto;
            }
        }
        if ($this->getBehavior('Photo') !== null) {
            return $this->getBehavior('Photo')->getPhotoUrl($size);
        }

        return false;
    }
Get photo url.

@param integer $size [[@doctodo param_description:size]] [optional]

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