Field This class enables you to leverage the Db\Field API for many-to-many relationships. For example, if you have a "projects" table that has a many-to-many relationship with a "staff" stable, represented by the cross-reference table "project_staff", then you would call hasMany('staff, 'project_staff') on your Projects Table class. Once the relationship has been registered with hasMany(), you can set and get values for the "staff" field on row objects. Also, you can pass the field to view helpers to generate controls, like this:
Relationship This class configures and offers utilities for managing many-to-many relationships in your database. Typically, you won't instantiate and interact with this class directly. Rather, you'll register a new relationship by calling hasMany() in your table class.