Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AddQuery examples to match function signature #418

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_sources/quickstart.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ Developers will need to create a ``$batch`` object first, then add the operation
.. code-block:: php

$batch = $dataService->CreateNewBatch();
$batch->AddQuery("select * from Customer startPosition 0 maxResults 20", "queryCustomer", "uniqueQuery");
$batch->AddQuery("select * from Customer startPosition 0 maxResults 20", "uniqueQueryIdentifier");
$batch->AddEntity($invoice, "uniqueIdentifier", "create");
$batch->Execute();

Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.html
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ <h3>Batch Request<a class="headerlink" href="#batch-request" title="Permalink to
<p>The SDK also support batch requests.</p>
<p>Developers will need to create a <code class="docutils literal"><span class="pre">$batch</span></code> object first, then add the operation in the batch request:</p>
<div class="highlight-php"><div class="highlight"><pre><span></span><span class="nv">$batch</span> <span class="o">=</span> <span class="nv">$dataService</span><span class="o">-&gt;</span><span class="na">CreateNewBatch</span><span class="p">();</span>
<span class="nv">$batch</span><span class="o">-&gt;</span><span class="na">AddQuery</span><span class="p">(</span><span class="s2">&quot;select * from Customer startPosition 0 maxResults 20&quot;</span><span class="p">,</span> <span class="s2">&quot;queryCustomer&quot;</span><span class="p">,</span> <span class="s2">&quot;uniqueQuery&quot;</span><span class="p">);</span>
<span class="nv">$batch</span><span class="o">-&gt;</span><span class="na">AddQuery</span><span class="p">(</span><span class="s2">&quot;select * from Customer startPosition 0 maxResults 20&quot;</span><span class="p">,</span> <span class="s2">&quot;uniqueQueryIdentifier&quot;</span><span class="p">);</span>
<span class="nv">$batch</span><span class="o">-&gt;</span><span class="na">AddEntity</span><span class="p">(</span><span class="nv">$invoice</span><span class="p">,</span> <span class="s2">&quot;uniqueIdentifier&quot;</span><span class="p">,</span> <span class="s2">&quot;create&quot;</span><span class="p">);</span>
<span class="nv">$batch</span><span class="o">-&gt;</span><span class="na">Execute</span><span class="p">();</span>
</pre></div>
Expand Down