Fixed a bug in the relation when the type uses underscore. It was using strtolower...

... to set the type inside the conditions array, but since it has used Inflector::camelize before, it needs to use Inflector::underscore to get the correct value.