// Create temp table
$this->
createTempTable();
foreach ($this->mediaPositions
as $mediaPosition) { $this->
find($mediaPosition);
} // Write media refs to used table
$this->
processQueue();
// Change album to recycle bin
$this->
moveToTrash();
return \
count($this->mediaPositions
);
} /**
* @return int
*/
public function getCount() { return (int) $this->connection->
createQueryBuilder() ->
select('count(*) as cnt'
)