General improvements to RatableBehavior::saveRating() and RatableBehavior::removeRating()
General improvements to RatableBehavior::saveRating() and RatableBehavior::removeRating()

By caching the $oldRating from RatableBehavior::isRatedBy(), we can remove an extra query max in both cases, improving performance.

Also removed cascading deletes and callbacks from RatableBehavior::saveRating()

ayman-alkom/cakephp-ratings,CakeDC/ratings,zuha/Ratings-Zuha-Cakephp-Plugin,CodeBlastr/Ratings,dereuromark/cakephp-ratings