Skip to content

Commit

Permalink
Merge pull request #114 from jtreminio/master
Browse files Browse the repository at this point in the history
addReference() actually throws exception
  • Loading branch information
stof committed Sep 16, 2013
2 parents adca0ae + 0e62045 commit b1e7d5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Doctrine/Common/DataFixtures/AbstractFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@ public function setReference($name, $object)
/**
* Set the reference entry identified by $name
* and referenced to managed $object. If $name
* already is set, it overrides it
* already is set, it throws a
* BadMethodCallException exception
*
* @param string $name
* @param object $object - managed object
* @see Doctrine\Common\DataFixtures\ReferenceRepository::addReference
* @throws BadMethodCallException - if repository already has
* a reference by $name
* @return void
*/
public function addReference($name, $object)
Expand Down

0 comments on commit b1e7d5a

Please sign in to comment.