private function getPk(Model $model, Request $request)
 {
     $values = [];
     $primaryKeys = $model->getStructure()->getPrimaryKey();
     foreach ($primaryKeys as $key) {
         if (!$request->attributes->has($key)) {
             throw new \LogicException("Missing primary key element '{$key}'");
         }
         $values[$key] = $request->attributes->get($key);
     }
     return $values;
 }
 public function initialize(Session $session)
 {
     parent::initialize($session);
     $this->dropTable();
     $this->createTable();
 }