/**
  * Return the contentObject.
  * 
  * @return void
  */
 public function contentObject()
 {
     $singleAttributeList = ezPersistentObject::fetchObjectList(eZContentObjectAttribute::definition(), null, array('id' => $this->attribute('contentobjectattribute_id')), null, 1, true);
     $singleAttribute = $singleAttributeList[0];
     return $singleAttribute->attribute('object');
 }
 /**
  * Fetches a the count of a list of entries by conditions.
  *
  * @param array $conditions Conditions to fetch with. Defaults to an empty array.
  *
  * @return integer The count of items in the list
  * @author ymc-dabe
  */
 public static function fetchListCount(array $conditions = array())
 {
     $rows = ezPersistentObject::fetchObjectList(self::definition(), array(), $conditions, null, null, false, false, array(array('operation' => 'count( id )', 'name' => 'count')));
     return $rows[0]['count'];
 }