Use Unix timestamp in Doctrine Timestampable
问题 How do I use Unix timestamps with the Doctrine Timestampable behavior? I found the following code snippet here, but I'd rather not manually add this everywhere: $this->actAs('Timestampable', array( 'created' => array('name' => 'created_at', 'type' => 'integer', 'format' => 'U', 'disabled' => false, 'options' => array()), 'updated' => array('name' => 'updated_at', 'type' => 'integer', 'format' => 'U', 'disabled' => false, 'options' => array()))); 回答1: This is a question that might get an