mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Add record count property to story responses
This commit is contained in:
@@ -58,6 +58,7 @@ class StoryTransformer extends TransformerAbstract
|
|||||||
'collection_id' => $story->getCollectionId(),
|
'collection_id' => $story->getCollectionId(),
|
||||||
'base_id' => $story->getBaseId(),
|
'base_id' => $story->getBaseId(),
|
||||||
'uuid' => $story->getUuid(),
|
'uuid' => $story->getUuid(),
|
||||||
|
'record_count' => count($storyView->getChildren())
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -31,7 +31,6 @@ class StoryView
|
|||||||
*/
|
*/
|
||||||
public function __construct(\record_adapter $story)
|
public function __construct(\record_adapter $story)
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->story = $story;
|
$this->story = $story;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user