Php Magento获得最后一次登录

Php Magento获得最后一次登录,php,session,magento,login,Php,Session,Magento,Login,如何在Magento中获取上次登录的详细信息,因为我没有使用以下代码获取任何信息: ->joinTable('log/customer', 'customer_id=entity_id', array('logout_at')); 使用以下代码段获取已登录的客户: Mage::getSingleton('customer/session')->getCustomer(); 尝试改用左连接 $collection->getSelect()->joinLeft(array

如何在Magento中获取上次登录的详细信息,因为我没有使用以下代码获取任何信息:

->joinTable('log/customer', 'customer_id=entity_id', array('logout_at'));

使用以下代码段获取已登录的客户:

Mage::getSingleton('customer/session')->getCustomer();

尝试改用左连接

$collection->getSelect()->joinLeft(array('lc' => 'log_customer'), 'e.customer_id = lc.customer_id', array('logout_at' => 'logout_at'));

e.customer_id may in this case be main_table.customer_id


您能否提供更多信息,说明您试图从何处调用此代码,目的是什么,调用联接的对象是什么?
e.entity_id may in this case be main_table.entity_id