Ejemplo n.º 1
0
 /**
  * Create a new node with related nodes with one database hit.
  *
  * @param  array  $model
  * @param  array  $related
  * @return \Sgpatil\Orientdb\Eloquent\Model
  */
 public function createWith(array $model, array $related)
 {
     $cypher = $this->grammar->compileCreateWith($this, compact('model', 'related'));
     // Indicate that we need the result returned as is.
     $result = true;
     return $this->connection->statement($cypher, [], $result);
 }