|
|
@@ -2531,9 +2531,11 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
|
|
|
$association = $this->_associations->get($property);
|
|
|
if (!$association) {
|
|
|
throw new RuntimeException(sprintf(
|
|
|
- 'Table "%s" is not associated with "%s"',
|
|
|
- get_class($this),
|
|
|
- $property
|
|
|
+ 'Undefined property `%s`. ' .
|
|
|
+ 'You have not defined the `%s` association on `%s`.',
|
|
|
+ $property,
|
|
|
+ $property,
|
|
|
+ static::class
|
|
|
));
|
|
|
}
|
|
|
|