protected function persistObjects(ORMInterface $persister, array $objects)
    {
        foreach ($this->processors as $proc) {
            foreach ($objects as $obj) {
                $proc->preProcess($obj);
            }
        }

        $persister->persist($objects);

        foreach ($this->processors as $proc) {
            foreach ($objects as $obj) {
                $proc->postProcess($obj);
            }
        }
    }
protected function persistObjects(ORMInterface $persister, array $objects)
    {
        foreach ($this->processors as $proc) {
            foreach ($objects as $obj) {
                $proc->preProcess($obj);
            }
        }

        $persister->persist($objects);

        foreach ($this->processors as $proc) {
            foreach ($objects as $obj) {
                $proc->postProcess($obj);
            }
        }
    }
protected function persistObjects ( ORMInterface $ persister , array $ objects ) { foreach ( $ this -> processors as $ proc ) { foreach ( $ objects as $ obj ) { $ proc -> preProcess ( $ obj ) ; } } $ persister -> persist ( $ objects ) ; foreach ( $ this -> processors as $ proc ) { foreach ( $ objects as $ obj ) { $ proc -> postProcess ( $ obj ) ; } } }
Persists given objects using ORM persister, and calls registered processors.

@param ORMInterface $persister
@param $objects
Persists given objects using ORM persister and calls registered processors .