Bravo3\Orm\Services\IndexManager::persistIndices PHP Метод

persistIndices() публичный Метод

Persist entity indices
public persistIndices ( object $entity, Entity $metadata = null, Reader $reader = null, string $local_id = null )
$entity object Local entity object
$metadata Bravo3\Orm\Mappers\Metadata\Entity Optionally provide entity metadata to prevent recalculation
$reader Bravo3\Orm\Services\Io\Reader Optionally provide the entity reader
$local_id string Optionally provide the local entity ID to prevent recalculation
    public function persistIndices($entity, Entity $metadata = null, Reader $reader = null, $local_id = null)
    {
        /** @var $metadata Entity */
        list($metadata, $reader, $local_id) = $this->buildPrerequisites($entity, $metadata, $reader, $local_id);
        $this->traversePersistIndices($metadata->getIndices(), $entity, $reader, $local_id);
        return $this;
    }