ORM 和 php 过滤掉数据库中的日期

ORM and php to filter out dates in database

如果我在我的 php 文件中编写此 ORM 查询,我会取回日期为“2000-01-01”的所有项目,但如何取回所有日期为“ 2000-01-01”及以上?我已经尝试过但没有用...

注意:数据库中的所有日期都是这种格式:yyyy-mm-dd

$results = ORM::for_table('my_table')
            ->where('slug', "slug_name")
            ->where('date', 'date'>="2000-01-01")
            ->find_array(); 

看起来像idiorm

http://idiorm.readthedocs.org/en/latest/querying.html#less-than-greater-than-where-lt-where-gt-where-lte-where-gte

并且从文档中查询构建器应该是

$results = ORM::for_table('my_table')
            ->where('slug', "slug_name")
            ->where_gte('date', "2000-01-01")
            ->find_array();