PersisterException.php 560 B

1234567891011121314151617181920
  1. <?php
  2. namespace Doctrine\ORM\Persisters;
  3. use Doctrine\ORM\ORMException;
  4. class PersisterException extends ORMException
  5. {
  6. /**
  7. * @return PersisterException
  8. */
  9. static public function matchingAssocationFieldRequiresObject($class, $associationName)
  10. {
  11. return new self(sprintf(
  12. "Cannot match on %s::%s with a non-object value. Matching objects by id is " .
  13. "not compatible with matching on an in-memory collection, which compares objects by reference.",
  14. $class, $associationName
  15. ));
  16. }
  17. }