Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Why Does ChildGroups return null?


Go to End


1033 Views

Avatar
biapar

Forum Moderator, 435 Posts

23 April 2010 at 7:47pm

Good Morning

I've a grandparent group with childs product groups.
But

function ChildGroups() {

//$p = $this->ID();
$filter = "ShowInMenus = 1 AND ParentID = " . $this->ID;
return DataObject::get("ProductGroup", $filter);
}

return NULL. Why?