Skip to content

Commit

Permalink
Add method for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Apr 2, 2015
1 parent 10efcc2 commit fddc38e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/ORM/Marshaller.php
Expand Up @@ -337,6 +337,19 @@ protected function _loadAssociatedByIds($assoc, $ids)
return $target->find()->where($filter)->toArray();
}

/**
* Loads a list of belongs to many from ids.
*
* @param Association $assoc The association class for the belongsToMany association.
* @param array $ids The list of ids to load.
* @return array An array of entities.
* @deprecated Use _loadAssociatedByIds()
*/
protected function _loadBelongsToMany($assoc, $ids)
{
return $this->_loadAssociatedByIds($assoc, $ids);
}

/**
* Merges `$data` into `$entity` and recursively does the same for each one of
* the association names passed in `$options`. When merging associations, if an
Expand Down

0 comments on commit fddc38e

Please sign in to comment.