title: Delete and Update from google app engine datastore
body: <p>I use Quercus to run php on google app engine and use GAE LowLevel Api to connect datastore.
  I need sample php code to CRUD ( Create, Read, Update, Delete ) in datastore.
  I have Create and Read sample php code.</p>
  
  <p>Create entry to datastore</p>
  
  <pre><code>&lt;?php
  import com.google.appengine.api.datastore;
  import com.google.appengine.api.datastore.Entity;
  import com.google.appengine.api.datastore.DatastoreServiceFactory;
  
  $entity = new Entity("test"); 
  $entity-&gt;setProperty('field1','value1');
  $entity-&gt;setProperty('field2','value2');
  $dataService = DatastoreServiceFactory::getDatastoreService();
  $dataService-&gt;put($entity);
  ?&gt;
  </code></pre>
  
  <p>Query to datastore</p>
  
  <pre><code>&lt;?php
  import com.google.appengine.api.datastore;
  import com.google.appengine.api.datastore.Query;
  import com.google.appengine.api.datastore.DatastoreServiceFactory;
  
  $q = new Query('test');
  //http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html
  $q-&gt;addFilter('field1','EQUAL' ,'value1');
  $dataService = DatastoreServiceFactory::getDatastoreService();
  $prepared = $dataService-&gt;prepare($q);
  foreach($prepared-&gt;asIterable() as $i) {
  echo $field1 = $i-&gt;getProperty('field1');
  echo $field2 = $i-&gt;getProperty('field2');
  }
  ?&gt;
  </code></pre>
  
  <p>Does anyone have any idea how to <strong>Delete</strong> and <strong>Update</strong> entries in datastore with php?</p>