diff --git a/src/ORM/Table.php b/src/ORM/Table.php index 27359b11a0d..64656e59743 100644 --- a/src/ORM/Table.php +++ b/src/ORM/Table.php @@ -968,7 +968,7 @@ public function getAssociation($name) { $association = $this->findAssociation($name); if (!$association) { - throw new InvalidArgumentException('Association does not exist: ' . $name); + throw new InvalidArgumentException("The {$name} association is not defined on {$this->getAlias()}."); } return $association;