lib/components/db/behaviors/Familiarity.php
public function watch($doWatch = true, $user = null)
    {
        $familiarity = $this->getFamiliarity($user);
        if (!$familiarity) {
            return false;
        }
        if ($doWatch) {
            $familiarity->watching = 1;
        } else {
            $familiarity->watching = 0;
        }

        return $familiarity->save();
    }
public function watch($doWatch = true, $user = null)
    {
        $familiarity = $this->getFamiliarity($user);
        if (!$familiarity) {
            return false;
        }
        if ($doWatch) {
            $familiarity->watching = 1;
        } else {
            $familiarity->watching = 0;
        }

        return $familiarity->save();
    }
public function watch ( $ doWatch = true , $ user = null ) { $ familiarity = $ this -> getFamiliarity ( $ user ) ; if ( ! $ familiarity ) { return false ; } if ( $ doWatch ) { $ familiarity -> watching = 1 ; } else { $ familiarity -> watching = 0 ; } return $ familiarity -> save ( ) ; }
[[@doctodo method_description:watch]].

@param boolean                      $doWatch [[@doctodo param_description:doWatch]] [optional]
@param [[@doctodo param_type:user]] $user    [[@doctodo param_description:user]] [optional]

@return [[@doctodo return_type:watch]] [[@doctodo return_description:watch]]
[[ @doctodo method_description : watch ]] .