|
@@ -886,7 +886,7 @@ abstract class Zend_Db_Table_Abstract
|
|
|
// then throw an exception.
|
|
// then throw an exception.
|
|
|
if (empty($this->_primary)) {
|
|
if (empty($this->_primary)) {
|
|
|
require_once 'Zend/Db/Table/Exception.php';
|
|
require_once 'Zend/Db/Table/Exception.php';
|
|
|
- throw new Zend_Db_Table_Exception('A table must have a primary key, but none was found');
|
|
|
|
|
|
|
+ throw new Zend_Db_Table_Exception("A table must have a primary key, but none was found for table '{$this->_name}'");
|
|
|
}
|
|
}
|
|
|
} else if (!is_array($this->_primary)) {
|
|
} else if (!is_array($this->_primary)) {
|
|
|
$this->_primary = array(1 => $this->_primary);
|
|
$this->_primary = array(1 => $this->_primary);
|