public function replies($filters = array())
	{
		if (!isset($filters['item_id']))
		{
			$filters['item_id'] = $this->get('item_id');
		}

		if (!isset($filters['item_type']))
		{
			$filters['item_type'] = $this->get('item_type');
		}

		$entries = self::all()
			->whereEquals('parent', (int) $this->get('id'))
			->whereEquals('item_type', $filters['item_type'])
			->whereEquals('item_id', (int) $filters['item_id']);

		if (isset($filters['state']))
		{
			$entries->whereIn('state', (array) $filters['state']);
		}

		return $entries;
	}
public function replies($filters = array())
	{
		if (!isset($filters['item_id']))
		{
			$filters['item_id'] = $this->get('item_id');
		}

		if (!isset($filters['item_type']))
		{
			$filters['item_type'] = $this->get('item_type');
		}

		$entries = self::all()
			->whereEquals('parent', (int) $this->get('id'))
			->whereEquals('item_type', $filters['item_type'])
			->whereEquals('item_id', (int) $filters['item_id']);

		if (isset($filters['state']))
		{
			$entries->whereIn('state', (array) $filters['state']);
		}

		return $entries;
	}
public function replies ( $ filters = array ( ) ) { if ( ! isset ( $ filters [ 'item_id' ] ) ) { $ filters [ 'item_id' ] = $ this -> get ( 'item_id' ) ; } if ( ! isset ( $ filters [ 'item_type' ] ) ) { $ filters [ 'item_type' ] = $ this -> get ( 'item_type' ) ; } $ entries = self :: all ( ) -> whereEquals ( 'parent' , ( int ) $ this -> get ( 'id' ) ) -> whereEquals ( 'item_type' , $ filters [ 'item_type' ] ) -> whereEquals ( 'item_id' , ( int ) $ filters [ 'item_id' ] ) ; if ( isset ( $ filters [ 'state' ] ) ) { $ entries -> whereIn ( 'state' , ( array ) $ filters [ 'state' ] ) ; } return $ entries ; }
Get either a count of or list of replies

@param   array   $filters  Filters to apply to query
@return  object
Get either a count of or list of replies