[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Typo3-dev] creating new records with tce

  • From: tw at amedick-sommer.de (Waggershauser, Thomas)
  • Date: Mon, 1 Aug 2005 09:37:13 +0200


-----Urspr?ngliche Nachricht-----
Von: typo3-dev-bounces at lists.netfielders.de
[mailto:typo3-dev-bounces at lists.netfielders.de]Im Auftrag von Bernhard
Gesendet: Samstag, 30. Juli 2005 10:02
An: typo3-dev at lists.netfielders.de
Betreff: Re: [Typo3-dev] creating new records with tce

Waggershauser, Thomas wrote:
> Hello Developers!
> How do I get the the uid of a new record, created with 
> $tce->process_datamap()? Im sure there is a way, but i do not get throug at 
> the moment...

and then you will do:

$this->tce->processDatamap($dataArr, NULL);

and afterwards you can get the UID's of the newly created records

$newUid = $this->tce->substNEWwithIDs[$hash];

Ok, I already found it. Thanx!

But there is another thing I'm wondering:
Is it possible to use something like

[table_a] => Array (
        [NEW1234] => Array ( ... )
[table_b] => Array (
        [NEW5678] => Array (
                [ref_to_table] => NEW1234

I tried this, but it did not work :(
In Kaspars examples he did this with pages and content using pid, but is this 
possible with custom fields?