public static function move($srcObject, $srcId, $destObject, $destId)
    {
        $i = 0;
        //przenoszenie plików
        foreach (CmsFileQuery::byObject($srcObject, $srcId)->find() as $file) {
            //nowy obiekt i id
            $file->object = $destObject;
            $file->objectId = $destId;
            //zapis
            $file->save();
            $i++;
        }
        return $i;
    }