How to connect two components together i.e. connector to PLC without cable

I am working in a line diagram and so far I have been able to connect a cable to a connector at each end. However these connectors then plug into other components and I want to define this connection somehow. I have the connector and the components next to each other/touching in the line diagram - this usually associates a cable and a component but I don't think it does anything if it is two components. Can anyone tell me how I can do this?

SolidworksElectrical