public function findRelatedEntries($entry_id, $parent_field_id)
    {
        try {
            $ids = Symphony::Database()->fetchCol('entry_id', sprintf("
                SELECT `entry_id`
                FROM `tbl_entries_data_%d`
                WHERE `relation_id` = %d
                AND `entry_id` IS NOT NULL
            ", $this->get('id'), $entry_id));
        } catch (Exception $e) {
            return array();
        }

        return $ids;
    }
public function findRelatedEntries($entry_id, $parent_field_id)
    {
        try {
            $ids = Symphony::Database()->fetchCol('entry_id', sprintf("
                SELECT `entry_id`
                FROM `tbl_entries_data_%d`
                WHERE `relation_id` = %d
                AND `entry_id` IS NOT NULL
            ", $this->get('id'), $entry_id));
        } catch (Exception $e) {
            return array();
        }

        return $ids;
    }
public function findRelatedEntries ( $ entry_id , $ parent_field_id ) { try { $ ids = Symphony :: Database ( ) -> fetchCol ( 'entry_id' , sprintf ( "
                SELECT `entry_id`
                FROM `tbl_entries_data_%d`
                WHERE `relation_id` = %d
                AND `entry_id` IS NOT NULL
            " , $ this -> get ( 'id' ) , $ entry_id ) ) ; } catch ( Exception $ e ) { return array ( ) ; } return $ ids ; }
Find related entries from a linking field's data table. Default implementation uses
column names `entry_id` and `relation_id` as with the Select Box Link

@since Symphony 2.5.0

@param  integer $entry_id
@param  integer $parent_field_id
@return array
Find related entries from a linking field s data table . Default implementation uses column names entry_id and relation_id as with the Select Box Link