/**
  * Set the primary keys of all records
  *
  * @param array $arguments The POST or GET parameters
  * @return void
  */
 public function setPrimaryKeys($arguments = array())
 {
     // Set primary keys of the record (for detail and edit view)
     if ($this->table->getTableType() == 'detail' || $this->table->getTableType() == 'edit') {
         $primaryKeyColumns = $this->recordManagementRepository->getPrimaryKeyColumns($this->table->getTableNames());
         $this->primaryKeys = $this->recordManagementRepository->getRecordsFromTables($primaryKeyColumns, $this->table->getTableNames(), $this->conditions, TRUE);
         if (isset($arguments['primaryKeys'])) {
             $primaryKeys = $arguments['primaryKeys'];
         } else {
             $primaryKeys = $this->primaryKeys[0];
         }
         $this->conditions->setPrimaryKeys($primaryKeys);
         $this->conditions->setStartRecord(0);
         $this->conditions->setRecordsPerPage(1);
     } else {
         if ($this->table->getTableType() == 'list') {
             $primaryKeyColumns = $this->recordManagementRepository->getPrimaryKeyColumns($this->table->getTableNames());
             $this->primaryKeys = $this->recordManagementRepository->getRecordsFromTables($primaryKeyColumns, $this->table->getTableNames(), $this->conditions, FASLE);
             //$this -> conditions -> setPrimaryKeys($primaryKeys);
         }
     }
 }