src/ORM/ManyManyList.php
protected function foreignIDFilter($id = null)
    {
        if ($id === null) {
            $id = $this->getForeignID();
        }

        // Apply relation filter
        $key = "\"{$this->joinTable}\".\"{$this->foreignKey}\"";
        if (is_array($id)) {
            return ["$key IN (" . DB::placeholders($id) . ")"  => $id];
        }
        if ($id !== null) {
            return [$key => $id];
        }
        return null;
    }
protected function foreignIDFilter($id = null)
    {
        if ($id === null) {
            $id = $this->getForeignID();
        }

        // Apply relation filter
        $key = "\"{$this->joinTable}\".\"{$this->foreignKey}\"";
        if (is_array($id)) {
            return ["$key IN (" . DB::placeholders($id) . ")"  => $id];
        }
        if ($id !== null) {
            return [$key => $id];
        }
        return null;
    }
protected function foreignIDFilter ( $ id = null ) { if ( $ id === null ) { $ id = $ this -> getForeignID ( ) ; } // Apply relation filter $ key = "\"{$this->joinTable}\".\"{$this->foreignKey}\"" ; if ( is_array ( $ id ) ) { return [ "$key IN (" . DB :: placeholders ( $ id ) . ")" => $ id ] ; } if ( $ id !== null ) { return [ $ key => $ id ] ; } return null ; }
Return a filter expression for when getting the contents of the
relationship for some foreign ID

@param int|null|string|array $id

@return array
Return a filter expression for when getting the contents of the relationship for some foreign ID