// getDocument() is my function to get the data.
$document = getDocument($username);
// set the hidden attributes for this document.
$document->setHiddenAttributes(array(
'password'
));
// get all the data in the document.
$result = $document->getAll();
The password should not show up in result because I have set it as hidden attribute.
But the password appeared because of isActive is set to true.
However, if I change the isActive to false, the password will be hidden again.
OS :
Mac OS X Yosemite 10.10.4
PHP :5.6.2
ArangoDB :2.6.1
arangodb-php :2.5
Recently I have done something to retrieve a document from the database.
This is the record in the database.
And these are my codes.
The
password
should not show up in result because I have set it as hidden attribute. But thepassword
appeared because ofisActive
is set to true. However, if I change theisActive
to false, thepassword
will be hidden again.