getRelated( "agreements" ); return count( $agreements ); } public static function getNoContacts( &$customer ) { $fd = new FilterData( "contactperson" ); $fd->add( 'customer', FilterData::EQUALS, $customer->get( '_uuid' ) ); $rows = $fd->getFilter()->getTableRecords(); return count($rows); } } ?>