mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
PHRAS-3722 : bin/console records:build-subdef (#4450)
* fix * PHRAS-4001 * - allow to prune without building - require --confirm to prune and build in the same time --------- Co-authored-by: jygaulier <gaulier@alchemy.fr>
This commit is contained in:
@@ -745,6 +745,19 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
||||
return $this->subdefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return media_subdef[]
|
||||
*/
|
||||
public function get_subdefs_from_db()
|
||||
{
|
||||
$subdefs = [];
|
||||
foreach ($this->getMediaSubdefRepository()->findByRecordIdsAndNames([$this->getRecordId()]) as $subdef) {
|
||||
$subdefs[$subdef->get_name()] = $subdef;
|
||||
}
|
||||
|
||||
return $subdefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
|
Reference in New Issue
Block a user