function primaryResult() {

        $result = $this->db->table( $this->table );
        $primary = $this->db->getPrimary( $this->table );

        if ( is_array( $primary ) ) {

            $this->execute();
            $or = array();

            foreach ( $this->rows as $row ) {

                $and = array();

                foreach ( $primary as $column ) {

                    $and[] = $this->db->is( $column, $row->__get( $column ) );

                }

                $or[] = "( " . implode( " AND ", $and ) . " )";

            }

            return $result->where( implode( " OR ", $or ) );

        }

        return $result->where( $primary, $this->getLocalKeys( $primary ) );

    }
function primaryResult() {

        $result = $this->db->table( $this->table );
        $primary = $this->db->getPrimary( $this->table );

        if ( is_array( $primary ) ) {

            $this->execute();
            $or = array();

            foreach ( $this->rows as $row ) {

                $and = array();

                foreach ( $primary as $column ) {

                    $and[] = $this->db->is( $column, $row->__get( $column ) );

                }

                $or[] = "( " . implode( " AND ", $and ) . " )";

            }

            return $result->where( implode( " OR ", $or ) );

        }

        return $result->where( $primary, $this->getLocalKeys( $primary ) );

    }
function primaryResult ( ) { $ result = $ this -> db -> table ( $ this -> table ) ; $ primary = $ this -> db -> getPrimary ( $ this -> table ) ; if ( is_array ( $ primary ) ) { $ this -> execute ( ) ; $ or = array ( ) ; foreach ( $ this -> rows as $ row ) { $ and = array ( ) ; foreach ( $ primary as $ column ) { $ and [ ] = $ this -> db -> is ( $ column , $ row -> __get ( $ column ) ) ; } $ or [ ] = "( " . implode ( " AND " , $ and ) . " )" ; } return $ result -> where ( implode ( " OR " , $ or ) ) ; } return $ result -> where ( $ primary , $ this -> getLocalKeys ( $ primary ) ) ; }
Return a new basic result which selects all rows in this result by primary key

@return Result
Return a new basic result which selects all rows in this result by primary key