Piotr Pokora schrieb:
Andreas Flack <[EMAIL PROTECTED]> wrote:
Hi!
Hi!
I have a strange problem with get_parent(). My code looks roughly like this:
foreach ($qb_results as $result)
{
$parent = $result->get_parent();
$grandparent = $parent->get_parent();
}
midgard's get_parent or midcom's one?
midcom's one. I just did a midcom-cache-invalidate and now all
grandparents are returned normally. But the question remains why they
couldn't be found before. My code for get_parent_guid_uncached looks
like this:
function get_parent_guid_uncached()
{
if ($this->activitytemplate != 0)
{
$mc = new midgard_collector('de_ccb_presets_activitytemplate',
'id', $this->activitytemplate);
$mc->set_key_property('id');
$mc->add_value_property('guid');
$mc->execute();
return $mc->get_subkey($this->activitytemplate,'guid');
}
else
{
return null;
}
}
On this particular server, I have a total of four independent Midgard
databases, so I'm beginning to wonder if this might be a memcache issue
(like I mentioned earlier, the memcache isn't DB-specific, so maybe the
system got confused by that?)
Bye,
Andreas
Piotras
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user
begin:vcard
fn:Andreas Flack
n:Flack;Andreas
org:CONTENT CONTROL Berlin GbR
adr;dom:;;Ebertystr. 20;Berlin;Berlin;10249
email;internet:[EMAIL PROTECTED]
tel;work:+49 (0) 177 565 19 13
tel;fax:+49 (0) 30 639 018 64
url:http://www.contentcontrol-berlin.de
version:2.1
end:vcard
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user