function file_has_gallery($entity, $entity_id) { return sfFileGalleryPeer::hasGallery($entity, $entity_id); }