Re: Propel Database backend

Georg Gell <[email protected]> Wed, 24 Aug 2005 12:26:39 +0200
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Lukas Kahwe Smith schrieb:
> The only thing that might need a bit of work and where I am willing to
> talk about things in the layout of the two Globals.php files which
> define the structure. Propel might have something of its own here.

hmm, I haven't seen the Globals.php until now :( What do they do?

$GLOBALS['_LiveUser'][*]['tables'] <- this is just a description of the
tables? If yes I don't need it because Propel creates it's classes out
of the XML description of the database, so afaik i need no runtime info
about the database structure. Is this needed somewhere else or only in
the database containers?

$GLOBALS['_LiveUser'][*]['fields'] <- same as above?

$GLOBALS['_LiveUser'][*]['alias'] <- ??? is this to help me change a
field name in a table? But I can't change the table name? Shouldn't the
alias array rather look like
$GLOBALS['_LiveUser'][*]['alias'] = array( 'table1' =>
                                      array ('alias' => 'table1_alias',
                                             'fields' => array(
                        fields...)
),
table2...
)
or am I completely wrong?

> However now that there is also pecl::sdo it might be a good point in
> time to start agreeing on a somewhat standard array structure for schemas.

what is pecl::sdo? or do you mean pdo?

regards
Georg