I can't find cakebin on the newly designed site.

After I posted the code, I realized I should have said that I was
working on a new dbo for Oracle.  I have made modifications to the
dbo_source and datasource files, which might be the problem.  I am
doing this because you can't get the table name from oracle like you
can in MySQL.  I have already committed to a project using Cake and
need to make it work.

When a table has other tables associated with it, does Cake parse
through all the tables to find all the fields of the current table and
the associations?  Could that be the reason that all the tables are not
showing up?

I would like to find a cleaner way to do all this, but the only way I
could find so far is to do something like this:

In the dbo_source file, fields function, around line 1050 I have
modified the code from:
$fields[$i] = $this->name($alias) . '.' . $this->name($fields[$i]) . '
AS ' . $this->name($fields[$i]);
            to
$fields[$i] = strtoupper($this->name($alias) . '.' .
$this->name($fields[$i]) . ' AS ' . $this->name($alias) . '_#_' .
$this->name($fields[$i]));

Which in effect prepends the table alias name to the field name and
concatonates them with '_#_'.  I can then use that to re-generate the
table name in the dbo_oracle.php file.

Does it all make more sense now?  Am I on the right track?  Can you
point me in another, less intrusive way to do this?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to