use return $this->tableGateway->lastInsertValue; to return added id