Re: [Components] ezcPersistentSessionIdentityDecorator ... missing attributes/columns [solved]

2010-04-28 Thread Christoph René Pardon
Hello Derick, thank you very much :) I've changed idProperty to "normal" properties. The problem was, that i've used the ezc-Tools to create the definition files. // Creates a schema.xml from current database table. // Needed for Persistent Object creation. $schema = ezcDbSchema::createFromDb(

Re: [Components] ezcPersistentSessionIdentityDecorator creating a sql query with createFindQuery() results in a wrong statement with missing attributes/columns

2010-04-28 Thread Derick Rethans
On Wed, 28 Apr 2010, Christoph René Pardon wrote: > There are some attributes missing in my statement. > The definition file looks like this: > > $def = new ezcPersistentObjectDefinition(); > $def->table = 'yela_core_acl_rules'; > $def->class = 'Yela_Persistence_Core_Acl_Rules'; > > $def->idProp

[Components] ezcPersistentSessionIdentityDecorator creating a sql query with createFindQuery() results in a wrong statement with missing attributes/columns

2010-04-27 Thread Christoph René Pardon
Hi lists reader :) i've a problem with creating sql statements with persistent objects of ezc. The following Code: $ezcSession = ezcPersistentSessionInstance::get(); $query = $ezcSession->createFindQuery('Yela_Persistence_Core_Acl_Rules'); var_dump($query->getQuery());die(); resu

Re: [Components] ezcPersistentSessionIdentityDecorator

2010-04-24 Thread Tobias Schlitt
Hi Rene, On 04/24/2010 11:38 AM, Christoph René Pardon wrote: > Ok, thats not good if this is the only way because if i have 5 related > tables i need to loop through all these 5 tables and merge the results > to one array. > > If there is no possibility with ezc to fetch all attributes at once,

Re: [Components] ezcPersistentSessionIdentityDecorator

2010-04-24 Thread Christoph René Pardon
Hi Tobias, Ok, thats not good if this is the only way because if i have 5 related tables i need to loop through all these 5 tables and merge the results to one array. If there is no possibility with ezc to fetch all attributes at once, it should at least possible to store the manually fetched res

Re: [Components] ezcPersistentSessionIdentityDecorator

2010-04-24 Thread Tobias Schlitt
Hi Christoph, On 04/24/2010 11:08 AM, Christoph René Pardon wrote: > 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 > ezcPersistentSessionIdentityDe

Re: [Components] ezcPersistentSessionIdentityDecorator

2010-04-24 Thread Christoph René Pardon
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/

Re: [Components] ezcPersistentSessionIdentityDecorator

2010-04-24 Thread Tobias Schlitt
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 = $

[Components] ezcPersistentSessionIdentityDecorator

2010-04-24 Thread Christoph René Pardon
Hello community, i have a problem with ezcPersistentSessionIdentityDecorator. After creating definition files i tried to create a select statement to fetch all rows from all dependent tables. The createt statements works fine within MySQL-Querybrowser but not with a find() or findWithRelations met