Entity/CustomFieldsGroup.php
public function getActiveCustomFields()
    {
        if($this->activeCustomFields === null) {
            $this->activeCustomFields = array();
            foreach ($this->customFields as $cf) {
                if($cf->isActive()) {
                    array_push($this->activeCustomFields, $cf);
                }
            }
        }

        return $this->activeCustomFields;
    }
public function getActiveCustomFields()
    {
        if($this->activeCustomFields === null) {
            $this->activeCustomFields = array();
            foreach ($this->customFields as $cf) {
                if($cf->isActive()) {
                    array_push($this->activeCustomFields, $cf);
                }
            }
        }

        return $this->activeCustomFields;
    }
Get all the custom

@return \Doctrine\Common\Collections\Collection