function newDataObjectByGenreId($genreId) { // Identify the delegate. $daoDelegate = $this->_getDaoDelegateForGenreId($genreId); // Instantiate and return the object. return $daoDelegate->newDataObject(); }