V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
why1
V2EX  ›  问与答

rockmongo 里执行成功,自己的 php 代码里却不行

  •  
  •   why1 · 2016-02-01 22:39:09 +08:00 · 1906 次点击
    这是一个创建于 2999 天前的主题,其中的信息可能已经有所发展或是发生改变。

    查找长度大于 5 的文档
    rockmongo 成功执行: array('$where' => 'this.name.length < 5')

    php 里:$cursor = $collection->find(array('name' => array ( '$where' => 'this.name.length < 5')));
    执行: localhost:27017: invalid operator: $where
    改:$cursor = $collection->findAll
    执行: Fatal error: Call to undefined method MongoCollection::findAll()

    但 rockmongo 日志是这个 findAll 的啊
    'limit' => '0',
    'pagesize' => '10',
    'command' => 'findAll',
    )

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2808 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 12:00 · PVG 20:00 · LAX 05:00 · JFK 08:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.