Remove one N+1 by fetching TechnicalDataSets

This commit is contained in:
Benoît Burnichon
2016-03-29 10:33:15 +02:00
parent 6bfe235bfa
commit c580b55c3e
14 changed files with 382 additions and 71 deletions

View File

@@ -0,0 +1,20 @@
<?php
/**
* This file is part of Phraseanet
*
* (c) 2005-2016 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Media;
interface RecordTechnicalDataSetRepository
{
/**
* @param int[] $recordIds
* @return RecordTechnicalDataSet[]
*/
public function findByRecordIds(array $recordIds);
}