Set the relation property correctly

/to @ritch 

See https://github.com/strongloop/loopback/issues/218