Added support for passing a relation as a builder object