foo = relationship('Foo', backref=backref('cycles', cascade=
    'save-update, merge, delete, delete-orphan'))
Dependency rule tried to blank out primary key in SQLAlchemy, when foreign key constraint is part of composite primary key