Field_Reference::refSQL PHP Method

refSQL() public method

Return DSQL for field
public refSQL ( ) : SQL_Model
return SQL_Model
    public function refSQL()
    {
        /** @type SQL_Model $q */
        $q = $this->ref('model');
        $q->addCondition($q->id_field, $this);
        return $q;
    }