fsi/data-indexer
Composer 安装命令:
composer require fsi/data-indexer
包简介
FSi DataIndexer Component - Component created to provide one simple object indexing strategy for FSi DataSource and DataGrid components.
关键字:
README 文档
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
统计信息
- 总下载量: 65.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-03-22