Re: DB_DataObject joinAdd
| From: | Daniel Kopp | Date: | Tue, 22 Jun 2004 18:50:26 +0000 |
| Subject: | Re: DB_DataObject joinAdd | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13253@lists.php.net to get a copy of this message | ||
Hi!
Thanks!
Alan Knowles wrote:
> It looks like you where trying to use the joinAdd argument to
> insert into the query..
well - yes - is that a crime? :-)
> To be honest the best way to do what you are trying is probably
> defining a method of the extended class:
> function joinAddSeman()
> $this->_joinAdd .= '...............';
> }
>
well - I think in this case I even dare to do the following:
$obj->_join.=' LEFT JOIN kia_seminaranmeldung semanm2 ON
semanm2.pID=ad2.pID ';
which seems to work even though I am pretty sure it will break in
php5 (there is protected mode for object-properties in php5 isn't
it?)
and ... for sure - this is a crime :-)
regards
Daniel