protected function setPrimaryKeyConditions()
    {
        foreach ($this->model->primaryFields() as $field) {
            $value = $this->accessor->getPropertyValue($this->instance, $field->name());
            $this->builder->andWhere(
                sprintf(
                    '%s = %s',
                    $this->connection->quoteIdentifier($field->mappedName()),
                    $this->builder->createNamedParameter($value, $field->type())
                )
            );
        }
    }
protected function setPrimaryKeyConditions()
    {
        foreach ($this->model->primaryFields() as $field) {
            $value = $this->accessor->getPropertyValue($this->instance, $field->name());
            $this->builder->andWhere(
                sprintf(
                    '%s = %s',
                    $this->connection->quoteIdentifier($field->mappedName()),
                    $this->builder->createNamedParameter($value, $field->type())
                )
            );
        }
    }
protected function setPrimaryKeyConditions ( ) { foreach ( $ this -> model -> primaryFields ( ) as $ field ) { $ value = $ this -> accessor -> getPropertyValue ( $ this -> instance , $ field -> name ( ) ) ; $ this -> builder -> andWhere ( sprintf ( '%s = %s' , $ this -> connection -> quoteIdentifier ( $ field -> mappedName ( ) ) , $ this -> builder -> createNamedParameter ( $ value , $ field -> type ( ) ) ) ) ; } }
Assigns primary condition

@throws QueryException
Assigns primary condition