fsi/data-indexer

FSi DataIndexer Component - Component created to provide one simple object indexing strategy for FSi DataSource and DataGrid components.

Maintainers

Package info

github.com/fsi-open/data-indexer

pkg:composer/fsi/data-indexer

Statistics

Installs: 63 438

Dependents: 2

Suggesters: 0

Stars: 2

Open Issues: 1

1.0.0 2021-02-08 11:00 UTC

This package is auto-updated.

Last update: 2026-03-10 21:15:57 UTC


README

This component is created to provide one simple object indexing strategy for FSi DataSource and DataGrid components.

Installation

Add fsi/data-indexer to composer.json

{
    ...

    "require": {
        "fsi/data-indexer" : "^1.0@dev",
    }

    ...
}

Usage

$dataIndexer = new DoctrineDataIndexer($this->getDoctrine(), "DemoBundle:News");
$news = News("this_is_id");

$index = $dataIndexer->getIndex($news);
// value in $index "this_is_id"

$entity = $dataIndexer->getData($index);
// $entity value is a News object with id "this_is_id"

DoctrineDataIndexer handle single and composite keys