Hallo,

schau Dir mal in cakePHP 1.2 das with Statement an:

Siehe auch: http://cakephp.org/files/OCPHP.pdf aber Seite 8

Am 29.01.08 schrieb su6z3r0 <[EMAIL PROTECTED]>:
>
> Hallo,
>
> Ich versuche vergeblich in einer HABTM Tabelle zus�tzliche Felder zu
> speichern.
>
>
> Beispiel:
>
> Person HABTM Location
> id
> person_id
> location_id
> created                  (<- die Automatische Eintragung eines Datums
> scheint bei HABTM nicht zu funktionieren. Also will ich das Datum
> manuell einf�gen)
>
> F�ge ich im Code also folgendes ein (Ausschnitt)
>
> $this->data['Location']['Location'] = array($this->Location->id);
> $this->Location->save($this->data);
> $this->Person->create();
> $this->Person->save($this->data);
>
> Wird der Eintrag in der HABTM Tabelle eingetragen. Wie kann ich aber
> nun das Feld "created" - oder ein beliebiges anders bef�llen?
>
> TIA,
> Alex
> >
>


-- 
Siegfried Hirsch
hhS - Welserstr. 1 - 81373 M�nchen - (089) 5484 3564 - skype:shirsch
Fax +49 - (0)89 - 943 992 698 - http://www.rss-blogger.de
http://www.newsbee.de NewsBee 2 - customized RSS solutions
Ihre Abos verwalten und k�ndigen mit http://abo-stop.de

--~--~---------~--~----~------------~-------~--~----~
Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google Groups-Gruppe 
"CakePHP-de für deutsche CakePHP Entwickler".
 Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
an [email protected]
 Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an [EMAIL 
PROTECTED]
 Weitere Optionen finden Sie in dieser Gruppe unter 
http://groups.google.com/group/cakephp-de?hl=de
-~----------~----~----~----~------~----~------~--~---

Antwort per Email an