DB_Dataobject: Cannot redeclare class
| From: | Denny 'DeKa' Bartelt | Date: | Thu, 12 Jun 2003 15:56:13 +0000 |
| Subject: | DB_Dataobject: Cannot redeclare class | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5919@lists.php.net to get a copy of this message | ||
Hi Mailinglist,
i've tried $dataobject->getLinks() for first time.
Even if I call function getLinks to get related objects
via links.ini or calling getLink directly the following
error occurs:
Fatal error: Cannot redeclare class dataobject_tkeyuser in
z:\test\bin\cls\dataobject\Tkeyuser.php on line 7
Does anybody know why this happens or how to solve this?
_m_f_g DeKa
--- some debugging information ---
---
calling code:
$user_phone = new_instance("Dataobject_Trelusertelephone");
$user_phone -> idTelephone = '4711';
$user_phone -> find(1);
$user_phone -> getLink("idEmployee","tkeyuser","idEmployee");
---
used tables:
[tkeyuser]
idEmployee = 1
strName = 2
strSurname = 2
strPassword = 2
strEmail = 2
chrGender = 2
datBegin = 1
datLastLogin = 1
datLastChange = 2
intLastChangeUser = 1
blnDisabled = 1
[tkeyuser__keys]
idEmployee = 1
[trelusertelephone]
idEmployee = 1
idTelephone = 1
datBegin = 1
datLastChange = 2
intLastChangeUser = 1
blnDisabled = 1
[trelusertelephone__keys]
idEmployee = 1
idTelephone = 1
---
DB_Dataobject config:
[DB_DataObject]
database = mysql://root@localhost/tbs
schema_location = etc/dataobject
class_location = bin/cls/dataobject
require_prefix = bin/cls/dataobject/
class_prefix = DataObject_
ignore_sequence_keys =
; ignore_sequence_keys = ALL
; sequence_{table} = name
extends_location =
extends =
generator_class_rewrite =
debug = 5
debug_ignore_updates = 0
dont_die = 0