Hi,
Looking at Zend_Dojo_Data.php, I realized I couldn't define a compound
identifier.
public function setIdentifier($identifier)
{
if (null === $identifier) {
$this->_identifier = null;
} elseif (is_string($identifier)) {
$this->_identifier = $identifier;
} elseif (is_numeric($identifier)) {
$this->_identifier = (int) $identifier;
} else {
require_once 'Zend/Dojo/Exception.php';
throw new Zend_Dojo_Exception('Invalid identifier; please use a
string or integer');
}
...
}
On the other hand, the dojo documentation for dojo.data.api.Identity states:
The identifiers must always be an object that can be converted to a string using the toString()
JavaScript API. Note: This does not keep identities from being compound keys; they just must be able
to be represented in a string fashion.
My question is: when dealing with tables that hold compound keys, what is the appropriate way to
build dojo.data objects?
--
Guillaume ORIOL
Software engineer
Technema