/** * @param string $entryId * @return mediaInfo */ public static function retrieveOriginalByEntryId($entryId) { $sourceFlavorAsset = flavorAssetPeer::retrieveOriginalByEntryId($entryId); if (!$sourceFlavorAsset) { return null; } $criteria = new Criteria(); $criteria->add(mediaInfoPeer::FLAVOR_ASSET_ID, $sourceFlavorAsset->getId()); return mediaInfoPeer::doSelectOne($criteria); }
/** * @param string $id * @return mediaInfo */ public static function retrieveById($id) { $criteria = new Criteria(); $criteria->add(mediaInfoPeer::ID, $id); return mediaInfoPeer::doSelectOne($criteria); }