Data Ojbect and joinAdd

From: Date: Tue, 21 Dec 2004 22:49:37 +0000
Subject: Data Ojbect and joinAdd
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-35216@lists.php.net to get a copy of this message
It looks like from reading the code and some testing that, unless there are entries for the DateObject in <database>.links.ini joinAdd() will fail. Despite having arguments indicating a join type and a field to join on joinAdd returns the error "{$obj->__table} has no link with {$this->__table}", This simple bit of code: 2741a2742,2746
                        if ($ofield === false && $joinCol) {
                               $ofield = $joinCol;
                               $tfield = $joinCol;
                         }
makes this work when the field names are the same in each table, without the need for an entry in the links.ini file. This is very handy in many cases. Is there a design reason to require that the link be present in the links.ini file before allowing the programmer to create a link? matt

« previous php.pear.dev (#35216) next »