Magento select single record from db
public function getSingleRecord($userId) { return $this->getCollection() ->addFieldToFilter(’user_id’, $userId) ->getFirstItem(); }
public function getSingleRecord($userId) { return $this->getCollection() ->addFieldToFilter(’user_id’, $userId) ->getFirstItem(); }