Hi Tobias, no, i only use one of both methods. Both together make no sense.
If i try $ezcSession->findWithRelations($query) the following exception is thrown: Fatal error: Call to private method ezcPersistentSessionIdentityDecorator::findWithRelations() from context 'Admin_Service_User' in /var/www/YelaCMS/public/YelaCMS/components/admin/services/User.php on line 111 Where $result = $ezcSession->findWithRelations($query) is on line 111. You can see in the following example, that only the columns/attributes from table one were fetched. But i need ALL attributes from ALL related tables. A foreach loop with a call to getRelatedObjects() makes no sense for me because i need all rows within one array. $result = $ezcSession->find($query); var_dump($result); array(4) { [1]=> object(Yela_Persistence_Users)#209 (28) { ["_name":protected]=> string(10) "yela_users" ["_primary":protected]=> string(2) "id" ["id"]=> string(1) "1" ["group_id"]=> NULL ["alias"]=> string(5) "admin" ["date_register"]=> string(19) "2010-02-08 23:29:24" ["date_login_last"]=> string(19) "0000-00-00 00:00:00" ["login"]=> string(5) "admin" ["password"]=> string(40) "askljf209jf2039jd2dclo39j0f9203hcdcwl3oi2j" ["mail"]=> string(11) "s...@ich.net" ["hash"]=> string(32) "d392d89c003c57d29e823a1064a2911a" ["status"]=> string(1) "1" ["_definition":protected]=> NULL ["_definitionConfigName":protected]=> NULL ["_db":protected]=> object(Zend_Db_Adapter_Pdo_Mysql)#54 (12) { ["_pdoType":protected]=> string(5) "mysql" ["_numericDataTypes":protected]=> array(16) { [0]=> int(0) [1]=> int(1) [2]=> int(2) ["INT"]=> int(0) ["INTEGER"]=> int(0) ["MEDIUMINT"]=> int(0) ["SMALLINT"]=> int(0) ["TINYINT"]=> int(0) ["BIGINT"]=> int(1) ["SERIAL"]=> int(1) ["DEC"]=> int(2) ["DECIMAL"]=> int(2) ["DOUBLE"]=> int(2) ["DOUBLE PRECISION"]=> int(2) ["FIXED"]=> int(2) ["FLOAT"]=> int(2) } ["_defaultStmtClass":protected]=> string(21) "Zend_Db_Statement_Pdo" ["_config":protected]=> array(11) { ["type"]=> string(5) "mysql" ["adapter"]=> string(9) "pdo_mysql" ["dbname"]=> string(7) "YelaCMS" ["username"]=> string(4) "root" ["password"]=> string(4) "test" ["host"]=> string(9) "127.0.0.1" ["port"]=> string(4) "3306" ["charset"]=> string(4) "utf8" ["persistent"]=> bool(false) ["options"]=> array(2) { ["caseFolding"]=> int(0) ["autoQuoteIdentifiers"]=> bool(true) } ["driver_options"]=> array(1) { [1002]=> string(16) "SET NAMES 'utf8'" } } ["_fetchMode":protected]=> int(2) ["_profiler":protected]=> object(Zend_Db_Profiler_Firebug)#55 (8) { ["_label":protected]=> string(24) "Zend_Db_Profiler_Firebug" ["_label_template":protected]=> string(44) "%label% (%totalCount% @ %totalDuration% sec)" ["_message":protected]=> object(Zend_Wildfire_Plugin_FirePhp_TableMessage)#56 (9) { ["_header":protected]=> array(3) { [0]=> string(4) "Time" [1]=> string(5) "Event" [2]=> string(10) "Parameters" } ["_rows":protected]=> array(3) { [0]=> array(3) { [0]=> string(7) "0.00066" [1]=> string(7) "connect" [2]=> NULL } [1]=> array(3) { [0]=> string(6) "0.0012" [1]=> string(26) "DESCRIBE `yela_admin_menu`" [2]=> NULL } [2]=> array(3) { [0]=> string(7) "0.00022" [1]=> string(117) "SELECT `yela_admin_menu`.* FROM `yela_admin_menu` WHERE (tree_left >= 0) AND (published = 1) ORDER BY `tree_left` ASC" [2]=> NULL } } ["_style":protected]=> string(5) "TABLE" ["_label":protected]=> string(42) "Zend_Db_Profiler_Firebug (3 @ 0.00208 sec)" ["_message":protected]=> NULL ["_buffered":protected]=> bool(true) ["_destroy":protected]=> bool(false) ["_ruid":protected]=> string(32) "d55f746f3e755999c66790f4e74641de" ["_options":protected]=> array(2) { ["traceOffset"]=> NULL ["includeLineNumbers"]=> bool(false) } } ["_totalElapsedTime":protected]=> float(0.0020840167999268) ["_queryProfiles":protected]=> array(3) { [0]=> object(Zend_Db_Profiler_Query)#106 (5) { ["_query":protected]=> string(7) "connect" ["_queryType":protected]=> int(1) ["_startedMicrotime":protected]=> float(1272099832.5462) ["_endedMicrotime":protected]=> float(1272099832.5468) ["_boundParams":protected]=> array(0) { } } [1]=> object(Zend_Db_Profiler_Query)#110 (5) { ["_query":protected]=> string(26) "DESCRIBE `yela_admin_menu`" ["_queryType":protected]=> int(2) ["_startedMicrotime":protected]=> float(1272099832.5472) ["_endedMicrotime":protected]=> float(1272099832.5484) ["_boundParams":protected]=> array(0) { } } [2]=> object(Zend_Db_Profiler_Query)#111 (5) { ["_query":protected]=> string(117) "SELECT `yela_admin_menu`.* FROM `yela_admin_menu` WHERE (tree_left >= 0) AND (published = 1) ORDER BY `tree_left` ASC" ["_queryType":protected]=> int(32) ["_startedMicrotime":protected]=> float(1272099832.5498) ["_endedMicrotime":protected]=> float(1272099832.55) ["_boundParams":protected]=> array(0) { } } } ["_enabled":protected]=> bool(true) ["_filterElapsedSecs":protected]=> NULL ["_filterTypes":protected]=> NULL } ["_defaultProfilerClass":protected]=> string(16) "Zend_Db_Profiler" ["_connection":protected]=> object(PDO)#107 (0) { } ["_caseFolding":protected]=> int(0) ["_autoQuoteIdentifiers":protected]=> bool(true) ["_allowSerialization":protected]=> bool(true) ["_autoReconnectOnUnserialize":protected]=> bool(false) } ["_schema":protected]=> NULL ["_cols":protected]=> NULL ["_identity":protected]=> int(1) ["_sequence":protected]=> bool(true) ["_metadata":protected]=> array(0) { } ["_metadataCache":protected]=> NULL ["_metadataCacheInClass":protected]=> bool(true) ["_rowClass":protected]=> string(17) "Zend_Db_Table_Row" ["_rowsetClass":protected]=> string(20) "Zend_Db_Table_Rowset" ["_referenceMap":protected]=> array(0) { } ["_dependentTables":protected]=> array(0) { } ["_defaultSource":protected]=> string(11) "defaultNone" ["_defaultValues":protected]=> array(0) { } } [2]=> object(Yela_Persistence_Users)#217 (28) { ["_name":protected]=> string(10) "yela_users" ["_primary":protected]=> string(2) "id" ["id"]=> string(1) "2" ["group_id"]=> NULL ["alias"]=> string(4) "test" ["date_register"]=> string(19) "0000-00-00 00:00:00" ["date_login_last"]=> string(19) "0000-00-00 00:00:00" ["login"]=> string(4) "test" ["password"]=> string(11) "s...@ich.net" ["mail"]=> string(0) "" ["hash"]=> string(32) "098f6bcd4621d373cade4e832627b4f6" ["status"]=> string(1) "0" ["_definition":protected]=> NULL ["_definitionConfigName":protected]=> NULL ["_db":protected]=> object(Zend_Db_Adapter_Pdo_Mysql)#54 (12) { ["_pdoType":protected]=> string(5) "mysql" ["_numericDataTypes":protected]=> array(16) { [0]=> int(0) [1]=> int(1) [2]=> int(2) ["INT"]=> int(0) ["INTEGER"]=> int(0) ["MEDIUMINT"]=> int(0) ["SMALLINT"]=> int(0) ["TINYINT"]=> int(0) ["BIGINT"]=> int(1) ["SERIAL"]=> int(1) ["DEC"]=> int(2) ["DECIMAL"]=> int(2) ["DOUBLE"]=> int(2) ["DOUBLE PRECISION"]=> int(2) ["FIXED"]=> int(2) ["FLOAT"]=> int(2) } ["_defaultStmtClass":protected]=> string(21) "Zend_Db_Statement_Pdo" ["_config":protected]=> array(11) { ["type"]=> string(5) "mysql" ["adapter"]=> string(9) "pdo_mysql" ["dbname"]=> string(7) "YelaCMS" ["username"]=> string(4) "root" ["password"]=> string(4) "test" ["host"]=> string(9) "127.0.0.1" ["port"]=> string(4) "3306" ["charset"]=> string(4) "utf8" ["persistent"]=> bool(false) ["options"]=> array(2) { ["caseFolding"]=> int(0) ["autoQuoteIdentifiers"]=> bool(true) } ["driver_options"]=> array(1) { [1002]=> string(16) "SET NAMES 'utf8'" } } ["_fetchMode":protected]=> int(2) ["_profiler":protected]=> object(Zend_Db_Profiler_Firebug)#55 (8) { ["_label":protected]=> string(24) "Zend_Db_Profiler_Firebug" ["_label_template":protected]=> string(44) "%label% (%totalCount% @ %totalDuration% sec)" ["_message":protected]=> object(Zend_Wildfire_Plugin_FirePhp_TableMessage)#56 (9) { ["_header":protected]=> array(3) { [0]=> string(4) "Time" [1]=> string(5) "Event" [2]=> string(10) "Parameters" } ["_rows":protected]=> array(3) { [0]=> array(3) { [0]=> string(7) "0.00066" [1]=> string(7) "connect" [2]=> NULL } [1]=> array(3) { [0]=> string(6) "0.0012" [1]=> string(26) "DESCRIBE `yela_admin_menu`" [2]=> NULL } [2]=> array(3) { [0]=> string(7) "0.00022" [1]=> string(117) "SELECT `yela_admin_menu`.* FROM `yela_admin_menu` WHERE (tree_left >= 0) AND (published = 1) ORDER BY `tree_left` ASC" [2]=> NULL } } ["_style":protected]=> string(5) "TABLE" ["_label":protected]=> string(42) "Zend_Db_Profiler_Firebug (3 @ 0.00208 sec)" ["_message":protected]=> NULL ["_buffered":protected]=> bool(true) ["_destroy":protected]=> bool(false) ["_ruid":protected]=> string(32) "d55f746f3e755999c66790f4e74641de" ["_options":protected]=> array(2) { ["traceOffset"]=> NULL ["includeLineNumbers"]=> bool(false) } } ["_totalElapsedTime":protected]=> float(0.0020840167999268) ["_queryProfiles":protected]=> array(3) { [0]=> object(Zend_Db_Profiler_Query)#106 (5) { ["_query":protected]=> string(7) "connect" ["_queryType":protected]=> int(1) ["_startedMicrotime":protected]=> float(1272099832.5462) ["_endedMicrotime":protected]=> float(1272099832.5468) ["_boundParams":protected]=> array(0) { } } [1]=> object(Zend_Db_Profiler_Query)#110 (5) { ["_query":protected]=> string(26) "DESCRIBE `yela_admin_menu`" ["_queryType":protected]=> int(2) ["_startedMicrotime":protected]=> float(1272099832.5472) ["_endedMicrotime":protected]=> float(1272099832.5484) ["_boundParams":protected]=> array(0) { } } [2]=> object(Zend_Db_Profiler_Query)#111 (5) { ["_query":protected]=> string(117) "SELECT `yela_admin_menu`.* FROM `yela_admin_menu` WHERE (tree_left >= 0) AND (published = 1) ORDER BY `tree_left` ASC" ["_queryType":protected]=> int(32) ["_startedMicrotime":protected]=> float(1272099832.5498) ["_endedMicrotime":protected]=> float(1272099832.55) ["_boundParams":protected]=> array(0) { } } } ["_enabled":protected]=> bool(true) ["_filterElapsedSecs":protected]=> NULL ["_filterTypes":protected]=> NULL } ["_defaultProfilerClass":protected]=> string(16) "Zend_Db_Profiler" ["_connection":protected]=> object(PDO)#107 (0) { } ["_caseFolding":protected]=> int(0) ["_autoQuoteIdentifiers":protected]=> bool(true) ["_allowSerialization":protected]=> bool(true) ["_autoReconnectOnUnserialize":protected]=> bool(false) } ["_schema":protected]=> NULL ["_cols":protected]=> NULL ["_identity":protected]=> int(1) ["_sequence":protected]=> bool(true) ["_metadata":protected]=> array(0) { } ["_metadataCache":protected]=> NULL ["_metadataCacheInClass":protected]=> bool(true) ["_rowClass":protected]=> string(17) "Zend_Db_Table_Row" ["_rowsetClass":protected]=> string(20) "Zend_Db_Table_Rowset" ["_referenceMap":protected]=> array(0) { } ["_dependentTables":protected]=> array(0) { } ["_defaultSource":protected]=> string(11) "defaultNone" ["_defaultValues":protected]=> array(0) { } } [3]=> object(Yela_Persistence_Users)#225 (28) { ["_name":protected]=> string(10) "yela_users" ["_primary":protected]=> string(2) "id" ["id"]=> string(1) "3" ["group_id"]=> NULL ["alias"]=> string(5) "test2" ["date_register"]=> string(19) "0000-00-00 00:00:00" ["date_login_last"]=> string(19) "2010-03-06 13:01:40" ["login"]=> string(5) "test2" ["password"]=> string(0) "" ["mail"]=> string(0) "" ["hash"]=> string(32) "098f6bcd4621d373cade4e832627b4f6" ["status"]=> string(1) "0" ["_definition":protected]=> NULL ["_definitionConfigName":protected]=> NULL ["_db":protected]=> object(Zend_Db_Adapter_Pdo_Mysql)#54 (12) { ["_pdoType":protected]=> string(5) "mysql" ["_numericDataTypes":protected]=> array(16) { [0]=> int(0) [1]=> int(1) [2]=> int(2) ["INT"]=> int(0) ["INTEGER"]=> int(0) ["MEDIUMINT"]=> int(0) ["SMALLINT"]=> int(0) ["TINYINT"]=> int(0) ["BIGINT"]=> int(1) ["SERIAL"]=> int(1) ["DEC"]=> int(2) ["DECIMAL"]=> int(2) ["DOUBLE"]=> int(2) ["DOUBLE PRECISION"]=> int(2) ["FIXED"]=> int(2) ["FLOAT"]=> int(2) } ["_defaultStmtClass":protected]=> string(21) "Zend_Db_Statement_Pdo" ["_config":protected]=> array(11) { ["type"]=> string(5) "mysql" ["adapter"]=> string(9) "pdo_mysql" ["dbname"]=> string(7) "YelaCMS" ["username"]=> string(4) "root" ["password"]=> string(4) "test" ["host"]=> string(9) "127.0.0.1" ["port"]=> string(4) "3306" ["charset"]=> string(4) "utf8" ["persistent"]=> bool(false) ["options"]=> array(2) { ["caseFolding"]=> int(0) ["autoQuoteIdentifiers"]=> bool(true) } ["driver_options"]=> array(1) { [1002]=> string(16) "SET NAMES 'utf8'" } } ["_fetchMode":protected]=> int(2) ["_profiler":protected]=> object(Zend_Db_Profiler_Firebug)#55 (8) { ["_label":protected]=> string(24) "Zend_Db_Profiler_Firebug" ["_label_template":protected]=> string(44) "%label% (%totalCount% @ %totalDuration% sec)" ["_message":protected]=> object(Zend_Wildfire_Plugin_FirePhp_TableMessage)#56 (9) { ["_header":protected]=> array(3) { [0]=> string(4) "Time" [1]=> string(5) "Event" [2]=> string(10) "Parameters" } ["_rows":protected]=> array(3) { [0]=> array(3) { [0]=> string(7) "0.00066" [1]=> string(7) "connect" [2]=> NULL } [1]=> array(3) { [0]=> string(6) "0.0012" [1]=> string(26) "DESCRIBE `yela_admin_menu`" [2]=> NULL } [2]=> array(3) { [0]=> string(7) "0.00022" [1]=> string(117) "SELECT `yela_admin_menu`.* FROM `yela_admin_menu` WHERE (tree_left >= 0) AND (published = 1) ORDER BY `tree_left` ASC" [2]=> NULL } } ["_style":protected]=> string(5) "TABLE" ["_label":protected]=> string(42) "Zend_Db_Profiler_Firebug (3 @ 0.00208 sec)" ["_message":protected]=> NULL ["_buffered":protected]=> bool(true) ["_destroy":protected]=> bool(false) ["_ruid":protected]=> string(32) "d55f746f3e755999c66790f4e74641de" ["_options":protected]=> array(2) { ["traceOffset"]=> NULL ["includeLineNumbers"]=> bool(false) } } ["_totalElapsedTime":protected]=> float(0.0020840167999268) ["_queryProfiles":protected]=> array(3) { [0]=> object(Zend_Db_Profiler_Query)#106 (5) { ["_query":protected]=> string(7) "connect" ["_queryType":protected]=> int(1) ["_startedMicrotime":protected]=> float(1272099832.5462) ["_endedMicrotime":protected]=> float(1272099832.5468) ["_boundParams":protected]=> array(0) { } } [1]=> object(Zend_Db_Profiler_Query)#110 (5) { ["_query":protected]=> string(26) "DESCRIBE `yela_admin_menu`" ["_queryType":protected]=> int(2) ["_startedMicrotime":protected]=> float(1272099832.5472) ["_endedMicrotime":protected]=> float(1272099832.5484) ["_boundParams":protected]=> array(0) { } } [2]=> object(Zend_Db_Profiler_Query)#111 (5) { ["_query":protected]=> string(117) "SELECT `yela_admin_menu`.* FROM `yela_admin_menu` WHERE (tree_left >= 0) AND (published = 1) ORDER BY `tree_left` ASC" ["_queryType":protected]=> int(32) ["_startedMicrotime":protected]=> float(1272099832.5498) ["_endedMicrotime":protected]=> float(1272099832.55) ["_boundParams":protected]=> array(0) { } } } ["_enabled":protected]=> bool(true) ["_filterElapsedSecs":protected]=> NULL ["_filterTypes":protected]=> NULL } ["_defaultProfilerClass":protected]=> string(16) "Zend_Db_Profiler" ["_connection":protected]=> object(PDO)#107 (0) { } ["_caseFolding":protected]=> int(0) ["_autoQuoteIdentifiers":protected]=> bool(true) ["_allowSerialization":protected]=> bool(true) ["_autoReconnectOnUnserialize":protected]=> bool(false) } ["_schema":protected]=> NULL ["_cols":protected]=> NULL ["_identity":protected]=> int(1) ["_sequence":protected]=> bool(true) ["_metadata":protected]=> array(0) { } ["_metadataCache":protected]=> NULL ["_metadataCacheInClass":protected]=> bool(true) ["_rowClass":protected]=> string(17) "Zend_Db_Table_Row" ["_rowsetClass":protected]=> string(20) "Zend_Db_Table_Rowset" ["_referenceMap":protected]=> array(0) { } ["_dependentTables":protected]=> array(0) { } ["_defaultSource":protected]=> string(11) "defaultNone" ["_defaultValues":protected]=> array(0) { } } [4]=> object(Yela_Persistence_Users)#236 (28) { ["_name":protected]=> string(10) "yela_users" ["_primary":protected]=> string(2) "id" ["id"]=> string(1) "4" ["group_id"]=> NULL ["alias"]=> string(5) "test3" ["date_register"]=> string(19) "0000-00-00 00:00:00" ["date_login_last"]=> string(19) "0000-00-00 00:00:00" ["login"]=> string(5) "test3" ["password"]=> string(11) "s...@ich.net" ["mail"]=> string(0) "" ["hash"]=> string(32) "098f6bcd4621d373cade4e832627b4f6" ["status"]=> string(1) "0" ["_definition":protected]=> NULL ["_definitionConfigName":protected]=> NULL ["_db":protected]=> object(Zend_Db_Adapter_Pdo_Mysql)#54 (12) { ["_pdoType":protected]=> string(5) "mysql" ["_numericDataTypes":protected]=> array(16) { [0]=> int(0) [1]=> int(1) [2]=> int(2) ["INT"]=> int(0) ["INTEGER"]=> int(0) ["MEDIUMINT"]=> int(0) ["SMALLINT"]=> int(0) ["TINYINT"]=> int(0) ["BIGINT"]=> int(1) ["SERIAL"]=> int(1) ["DEC"]=> int(2) ["DECIMAL"]=> int(2) ["DOUBLE"]=> int(2) ["DOUBLE PRECISION"]=> int(2) ["FIXED"]=> int(2) ["FLOAT"]=> int(2) } ["_defaultStmtClass":protected]=> string(21) "Zend_Db_Statement_Pdo" ["_config":protected]=> array(11) { ["type"]=> string(5) "mysql" ["adapter"]=> string(9) "pdo_mysql" ["dbname"]=> string(7) "YelaCMS" ["username"]=> string(4) "root" ["password"]=> string(4) "test" ["host"]=> string(9) "127.0.0.1" ["port"]=> string(4) "3306" ["charset"]=> string(4) "utf8" ["persistent"]=> bool(false) ["options"]=> array(2) { ["caseFolding"]=> int(0) ["autoQuoteIdentifiers"]=> bool(true) } ["driver_options"]=> array(1) { [1002]=> string(16) "SET NAMES 'utf8'" } } ["_fetchMode":protected]=> int(2) ["_profiler":protected]=> object(Zend_Db_Profiler_Firebug)#55 (8) { ["_label":protected]=> string(24) "Zend_Db_Profiler_Firebug" ["_label_template":protected]=> string(44) "%label% (%totalCount% @ %totalDuration% sec)" ["_message":protected]=> object(Zend_Wildfire_Plugin_FirePhp_TableMessage)#56 (9) { ["_header":protected]=> array(3) { [0]=> string(4) "Time" [1]=> string(5) "Event" [2]=> string(10) "Parameters" } ["_rows":protected]=> array(3) { [0]=> array(3) { [0]=> string(7) "0.00066" [1]=> string(7) "connect" [2]=> NULL } [1]=> array(3) { [0]=> string(6) "0.0012" [1]=> string(26) "DESCRIBE `yela_admin_menu`" [2]=> NULL } [2]=> array(3) { [0]=> string(7) "0.00022" [1]=> string(117) "SELECT `yela_admin_menu`.* FROM `yela_admin_menu` WHERE (tree_left >= 0) AND (published = 1) ORDER BY `tree_left` ASC" [2]=> NULL } } ["_style":protected]=> string(5) "TABLE" ["_label":protected]=> string(42) "Zend_Db_Profiler_Firebug (3 @ 0.00208 sec)" ["_message":protected]=> NULL ["_buffered":protected]=> bool(true) ["_destroy":protected]=> bool(false) ["_ruid":protected]=> string(32) "d55f746f3e755999c66790f4e74641de" ["_options":protected]=> array(2) { ["traceOffset"]=> NULL ["includeLineNumbers"]=> bool(false) } } ["_totalElapsedTime":protected]=> float(0.0020840167999268) ["_queryProfiles":protected]=> array(3) { [0]=> object(Zend_Db_Profiler_Query)#106 (5) { ["_query":protected]=> string(7) "connect" ["_queryType":protected]=> int(1) ["_startedMicrotime":protected]=> float(1272099832.5462) ["_endedMicrotime":protected]=> float(1272099832.5468) ["_boundParams":protected]=> array(0) { } } [1]=> object(Zend_Db_Profiler_Query)#110 (5) { ["_query":protected]=> string(26) "DESCRIBE `yela_admin_menu`" ["_queryType":protected]=> int(2) ["_startedMicrotime":protected]=> float(1272099832.5472) ["_endedMicrotime":protected]=> float(1272099832.5484) ["_boundParams":protected]=> array(0) { } } [2]=> object(Zend_Db_Profiler_Query)#111 (5) { ["_query":protected]=> string(117) "SELECT `yela_admin_menu`.* FROM `yela_admin_menu` WHERE (tree_left >= 0) AND (published = 1) ORDER BY `tree_left` ASC" ["_queryType":protected]=> int(32) ["_startedMicrotime":protected]=> float(1272099832.5498) ["_endedMicrotime":protected]=> float(1272099832.55) ["_boundParams":protected]=> array(0) { } } } ["_enabled":protected]=> bool(true) ["_filterElapsedSecs":protected]=> NULL ["_filterTypes":protected]=> NULL } ["_defaultProfilerClass":protected]=> string(16) "Zend_Db_Profiler" ["_connection":protected]=> object(PDO)#107 (0) { } ["_caseFolding":protected]=> int(0) ["_autoQuoteIdentifiers":protected]=> bool(true) ["_allowSerialization":protected]=> bool(true) ["_autoReconnectOnUnserialize":protected]=> bool(false) } ["_schema":protected]=> NULL ["_cols":protected]=> NULL ["_identity":protected]=> int(1) ["_sequence":protected]=> bool(true) ["_metadata":protected]=> array(0) { } ["_metadataCache":protected]=> NULL ["_metadataCacheInClass":protected]=> bool(true) ["_rowClass":protected]=> string(17) "Zend_Db_Table_Row" ["_rowsetClass":protected]=> string(20) "Zend_Db_Table_Rowset" ["_referenceMap":protected]=> array(0) { } ["_dependentTables":protected]=> array(0) { } ["_defaultSource":protected]=> string(11) "defaultNone" ["_defaultValues":protected]=> array(0) { } } } Tobias Schlitt schrieb: > Hi Christoph, > > the case you describe looks quite complex and at a first glace I can > only guess where problems might occur. Did you really run the following > 2 lines in a row? > >> // These two statements won't fetch all rows from ALL related tables: >> $result = $ezcSession->find($query); >> $result = $ezcSession->findWithRelations($query); > > I would the suggest that you only try > >> $result = $ezcSession->findWithRelations($query); > > What is the exact result. Are related objects fetched anyway? How did > you access the related objects? > > Regards, > Toby -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components