Allows the connection to be set on Model objeccts. Related to #365