many-to-many with relationship on table with blob file

A place for users and developers of the Xataface to discuss and receive support.

many-to-many with relationship on table with blob file

Postby fantomasdm » Mon Jun 14, 2010 10:11 am

Hi, When I try to add new relative record on a table that have a blob field, __filename and mimetype isn't fill!!
If I add directly, without using relation all works...
P.S...Sorry for my English, but it's not my fault, I'm Italian..
fantomasdm
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Re: many-to-many with relationship on table with blob file

Postby fantomasdm » Thu Jun 17, 2010 2:38 am

Hi, found error...
in file: ShortRelatedRecordForm.php
on line 608 change
Code: Select all
$colVals[ $this->_relationshipName.'.'.$metaKey ] = $metaValue;

to
Code: Select all
$abs_metaField = $this->_parentTable->absoluteFieldName($metaKey, $this->_relationship->_schema['selected_tables']);
$colVals[ $abs_metaField ] = $metaValue;


Questo è stato difficile da trovare!!!
This was difficult to find!!
fantomasdm
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Re: many-to-many with relationship on table with blob file

Postby shannah » Thu Jun 17, 2010 7:31 am

Thanks. I'll add this change to the trunk so it will be included in the next release.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 48 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved