BindingOne-To-OneforeignkeyassociationsisdonewithDoctrine_Record::ownsOne()andDoctrine_Record::hasOne()methods.Inthefollowingexampleuserownsoneemailandhasoneaddress.Sotherelationshipbetweenuserandemailisone-to-onecomposite.Therelationshipbetweenuserandaddressisone-to-oneaggregate.<br\><br\>TheEmailcomponenthereismappedtoUsercomponent's column email_id hence their relation is called LOCALKEY relation. On the other hand the Address component is mapped to User by it'suser_idcolumnhencetherelationbetweenUserandAddressiscalledFOREIGNKEYrelation.