public function getAllPhotos($offset = null, $limit = null, $exclude = array()) { $result = ApuPhotoPeer::retrieveAll($offset, $limit, $exclude); if (is_null($offset) and is_null($limit)) { return $result['objects']; } return $result; }