criticises
people whose friendship or assistance lasts only as long as they receive some benefit in return; when the incentive disappears, so does their support.
When when a favourable situation ceases, we have to accept the results, the saying “No longer pipe, no longer dance” is appropriate.