Fixed view code creation in SchemaRelationship.