public function findByExtra( ExtraStructure $extra )
    {
        $rootId = $extra->rootParagraphId;

        return $this->createStructure( array(
            'rootId'    => $rootId,
            'extra'     => $extra,
            'rules'     => $this->getRuleMapper()
                                ->findAllByRoot(
                                    $rootId,
                                    $this->getRuleOrder()
                                ),
        ) );
    }
public function findByExtra( ExtraStructure $extra )
    {
        $rootId = $extra->rootParagraphId;

        return $this->createStructure( array(
            'rootId'    => $rootId,
            'extra'     => $extra,
            'rules'     => $this->getRuleMapper()
                                ->findAllByRoot(
                                    $rootId,
                                    $this->getRuleOrder()
                                ),
        ) );
    }
public function findByExtra ( ExtraStructure $ extra ) { $ rootId = $ extra -> rootParagraphId ; return $ this -> createStructure ( array ( 'rootId' => $ rootId , 'extra' => $ extra , 'rules' => $ this -> getRuleMapper ( ) -> findAllByRoot ( $ rootId , $ this -> getRuleOrder ( ) ) , ) ) ; }
Find a structure by its extra structure

@param   int|array   $primaryKeys
@return  Structure
Find a structure by its extra structure