kann keine Daten von einer Tabelle in eine andere Tabelle speichern

In cakephp Ich kann die von 1 Tabelle zurückgegebenen Daten nicht in einer anderen Tabelle speichern. Ich habe Daten in einem Formular aus der Tutors-Tabelle vorab ausgefüllt und möchte diese Daten nur als neue Zeile in der Tabelle tutorEdit speichern (nicht verwechselt mit einer Bearbeitungsfunktion). Das Problem, das ich bekomme, ist, dass ich die Daten zum Speichern bekomme, aber tutorEdit speichert keine der zurückgegebenen Daten (kein Fehler).

public function tutor_edit($id = null) {
        $this->loadModel('Tutor');

        $this->Tutor->id = $id;

        debug($this->request->data );

        if (!$this->Tutor->exists()) {
            throw new NotFoundException(__('Invalid tutor'));
        }
        if ($this->request->is('post')  ) {

            if ($this->TutorEdit->save($this->request->data)) {
                $this->Session->setFlash(__('The tutor details to be edited have ben forwarded to management'), 'flash_success');
               // $this->redirect(array('controller'=> 'tutors' , 'action' => 'tutordetails'));
            } else {
                $this->Session->setFlash(__('The tutor edit details could not be saved. Please, try again.'), 'flash_alert');
            }



        } else {
            $this->request->data = $this->Tutor->read(null, $id);
        }

/////
   <?php
                    echo $this->Form->create('Tutor',array('class' => 'form-horizontal'));
                    echo $this->Form->input('id', $formHorizontalHtmlOptions);
                    echo $this->Form->input('first_name', $formHorizontalHtmlOptions);
                    echo $this->Form->input('last_name', $formHorizontalHtmlOptions);
                    echo $this->Form->input('email', $formHorizontalHtmlOptions);
                    echo $this->Form->input('mobile', $formHorizontalHtmlOptions);
                    echo $this->Form->input('home_phone', $formHorizontalHtmlOptions);
                    echo $this->Form->input('work_phone', $formHorizontalHtmlOptions);
                    echo $this->Form->input('gender', array_merge($formHorizontalHtmlOptions, array('type' => 'select', 'options' => $gender)));
                    echo $this->Form->end('Save Edit Request');   
                    ?>

habe nichts darüber in @ gesehhttp: //book.cakephp.org/2.0/de/models/saving-your-data.htm

Antworten auf die Frage(1)

Ihre Antwort auf die Frage