开发者

How to select last 24 hours Doctrine_Query with Symfony?

开发者 https://www.devze.com 2023-03-14 07:17 出处:网络
I am trying to get all users who logged in last day. How can I do it ? In yml the table for users is Timestampable.

I am trying to get all users who logged in last day. How can I do it ?

In yml the table for users is Timestampable.

I am using Doctrine 1.2开发者_开发知识库 in Symfony 1.4.

Users:
  tableName:          users
  options:
    type:             InnoDB
    collate:          utf8_general_ci
    charset:          utf8
  actAs:
    Timestampable:
      updated:
        disabled: true


You cannot, unless you add a field where you update the record every time someone logs in. Timestampable provides you with "created_at" (record creation) and "updated_at" (record last updated).

0

精彩评论

暂无评论...
验证码 换一张
取 消