You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This FAILS to find the record:
...
$keysCollection = $udb->selectCollection('keys');
$keyResults = $keysCollection->findOne(array('Xid' => 9999999));
// However - if we simply change the data (stored and searched) to STRING it works!
Phactory::define('keys', array('Xid' => "9999999"));
Phactory::create('keys');
...
$keysCollection = $udb->selectCollection('keys');
$keyResults = $keysCollection->findOne(array('Xid' => "9999999"));
As you can see the number is small enough not to cause any potential Int64 strangeness.
Clearly a bug.
The text was updated successfully, but these errors were encountered:
You are right - looks like it was probably my code... Thanks. However, I have more questions about the proper usage. I think I am not doing this right. Can I direct questions here? Or somewhere else? Thanks!
//Given:
Phactory::define('keys', array('Xid' => 9999999));
Phactory::create('keys');
// This FAILS to find the record:
...
$keysCollection = $udb->selectCollection('keys');
$keyResults = $keysCollection->findOne(array('Xid' => 9999999));
// However - if we simply change the data (stored and searched) to STRING it works!
Phactory::define('keys', array('Xid' => "9999999"));
Phactory::create('keys');
...
$keysCollection = $udb->selectCollection('keys');
$keyResults = $keysCollection->findOne(array('Xid' => "9999999"));
As you can see the number is small enough not to cause any potential Int64 strangeness.
Clearly a bug.
The text was updated successfully, but these errors were encountered: