title: How to remove an association on the fly in CakePHP v3
body: <p>In previous versions of CakePHP you could temporarily alter associations with <code>Table::bindModel('SomeModel');</code> but I can't figure out how to do it in v3.</p>
  
  <p>I want to temporarily disable a hasMany association that's defined in the Table class because it's causing errors when I run older migrations that were written before that table existed. I don't fully understand the migration problem but it immediately goes away when I comment out the association in the Table class.</p>
  
  <pre><code>class AgenciesTable extends Table
  {
      public function initialize(array $config)
      {
          parent::initialize($config);
  
          $this-&gt;table('agencies');
          $this-&gt;displayField('full_name');
          $this-&gt;primaryKey('id');
          $this-&gt;addBehavior('Timestamp');
  
          $this-&gt;hasMany('Routes');
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/qKu9f.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qKu9f.png" alt="enter image description here"></a></p>