// Then deal with our end of things
for (Enumeration attributeEnumerator = relationship.sourceAttributes().objectEnumerator(); attributeEnumerator.hasMoreElements(); ) {
EOAttribute attribute = (EOAttribute)attributeEnumerator.nextElement();
if( (! this.isSinglePrimaryKeyAttribute(attribute)) && (columnNameDictionary.objectForKey(tableName + "." + attribute.columnName()) != null) ) {
columnNameDictionary.setObjectForKey(attribute.columnName(), tableName + "." + attribute.columnName());
EOSQLExpression expression = this._expressionForString("create index " + tableName + " " + attribute.columnName());
if(expression != null) primaryKeyConstraintExpressions.addObject( expression );
}
}
// Then deal with the other side
if(entity.model() == relationship.destinationEntity().model()) {