public function add($alias, Association $association)
    {
        list(, $alias) = pluginSplit($alias);

        return $this->_items[strtolower($alias)] = $association;
    }
public function add($alias, Association $association)
    {
        list(, $alias) = pluginSplit($alias);

        return $this->_items[strtolower($alias)] = $association;
    }
public function add ( $ alias , Association $ association ) { list ( , $ alias ) = pluginSplit ( $ alias ) ; return $ this -> _items [ strtolower ( $ alias ) ] = $ association ; }
Add an association to the collection

If the alias added contains a `.` the part preceding the `.` will be dropped.
This makes using plugins simpler as the Plugin.Class syntax is frequently used.

@param string $alias The association alias
@param \Cake\ORM\Association $association The association to add.
@return \Cake\ORM\Association The association object being added.
Add an association to the collection