public static function removeOwner($owner_id, $owner, $owner_attribute)
    {
        $mediafiles = Owners::findOne([
            'owner_id' => $owner_id,
            'owner' => $owner,
            'owner_attribute' => $owner_attribute,
        ]);

        if ($mediafiles) {
            return $mediafiles->delete();
        }

        return false;
    }
public static function removeOwner($owner_id, $owner, $owner_attribute)
    {
        $mediafiles = Owners::findOne([
            'owner_id' => $owner_id,
            'owner' => $owner,
            'owner_attribute' => $owner_attribute,
        ]);

        if ($mediafiles) {
            return $mediafiles->delete();
        }

        return false;
    }
public static function removeOwner ( $ owner_id , $ owner , $ owner_attribute ) { $ mediafiles = Owners :: findOne ( [ 'owner_id' => $ owner_id , 'owner' => $ owner , 'owner_attribute' => $ owner_attribute , ] ) ; if ( $ mediafiles ) { return $ mediafiles -> delete ( ) ; } return false ; }
Remove this mediafile owner

@param int $owner_id owner id
@param string $owner owner identification name
@param string $owner_attribute owner identification attribute
@return bool delete result
Remove this mediafile owner