src/GovTribe/LaravelKinvey/Client/Plugins/KinveyInjectEntityIdPlugin.php
public function beforePrepare(Event $event)
	{
		$command = $event['command'];
		$operation = $command->getOperation();

		if ($command->getName() !== 'updateEntity' && $command->offsetExists('_id') === true) return;

		$operation->addParam(new Parameter(array(
			'name' => 'body_id',
			'location' => 'json',
			'type' => 'string',
			'default' => $command->offsetGet('_id'),
			'static' => true,
			'sentAs' => '_id'
		)));
	}
public function beforePrepare(Event $event)
	{
		$command = $event['command'];
		$operation = $command->getOperation();

		if ($command->getName() !== 'updateEntity' && $command->offsetExists('_id') === true) return;

		$operation->addParam(new Parameter(array(
			'name' => 'body_id',
			'location' => 'json',
			'type' => 'string',
			'default' => $command->offsetGet('_id'),
			'static' => true,
			'sentAs' => '_id'
		)));
	}
public function beforePrepare ( Event $ event ) { $ command = $ event [ 'command' ] ; $ operation = $ command -> getOperation ( ) ; if ( $ command -> getName ( ) !== 'updateEntity' && $ command -> offsetExists ( '_id' ) === true ) return ; $ operation -> addParam ( new Parameter ( array ( 'name' => 'body_id' , 'location' => 'json' , 'type' => 'string' , 'default' => $ command -> offsetGet ( '_id' ) , 'static' => true , 'sentAs' => '_id' ) ) ) ; }
Add the entity's _id to the request body.

@param  Guzzle\Common\Event
@return void
Add the entity s _id to the request body .