public static function retrieveByDropFolderIdAndFileName($dropFolderId, $fileName) { $c = new Criteria(); $c->addAnd(DropFolderFilePeer::DROP_FOLDER_ID, $dropFolderId, Criteria::EQUAL); $c->addAnd(DropFolderFilePeer::FILE_NAME, $fileName, Criteria::EQUAL); $dropFolderFile = DropFolderFilePeer::doSelectOne($c); return $dropFolderFile; }