bubasuma\simplechat\db\Conversation::read PHP 메소드

read() 공개 정적인 메소드

public static read ( $userId, $contactId ) : array
$userId
$contactId
리턴 array the number of rows updated
    public static function read($userId, $contactId)
    {
        $count = static::updateAll(['is_new' => false], ['receiver_id' => $userId, 'sender_id' => $contactId, 'is_new' => true]);
        return compact('count');
    }