Skip to content

Instantly share code, notes, and snippets.

@converge
Created May 25, 2015 14:48
Show Gist options
  • Save converge/0bfa02cd4f363329d4f5 to your computer and use it in GitHub Desktop.
Save converge/0bfa02cd4f363329d4f5 to your computer and use it in GitHub Desktop.
// create an order
$newOrder = TableRegistry::get('Orders');
$query = $newOrder->query();
$query->insert(['client_id', 'statuse_id'])
->values(['client_id' => $clientId->id,
'statuse_id' => 1])
->execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment