src/Structure.php
public function build($build_path = null, ConnectionInterface $connection = null, array $event_handlers = [])
    {
        $builders = $this->getBuilders($build_path, $connection, $event_handlers);

        foreach ($builders as $builder) {
            $builder->preBuild();
        }

        foreach ($this->types as $type) {
            foreach ($builders as $builder) {
                $builder->buildType($type);
            }
        }

        foreach ($builders as $builder) {
            $builder->postBuild();
        }
    }
public function build($build_path = null, ConnectionInterface $connection = null, array $event_handlers = [])
    {
        $builders = $this->getBuilders($build_path, $connection, $event_handlers);

        foreach ($builders as $builder) {
            $builder->preBuild();
        }

        foreach ($this->types as $type) {
            foreach ($builders as $builder) {
                $builder->buildType($type);
            }
        }

        foreach ($builders as $builder) {
            $builder->postBuild();
        }
    }
public function build ( $ build_path = null , ConnectionInterface $ connection = null , array $ event_handlers = [ ] ) { $ builders = $ this -> getBuilders ( $ build_path , $ connection , $ event_handlers ) ; foreach ( $ builders as $ builder ) { $ builder -> preBuild ( ) ; } foreach ( $ this -> types as $ type ) { foreach ( $ builders as $ builder ) { $ builder -> buildType ( $ type ) ; } } foreach ( $ builders as $ builder ) { $ builder -> postBuild ( ) ; } }
Build model at the given path.

If $build_path is null, classes will be generated, evaled and loaded into the memory

@param string|null         $build_path
@param ConnectionInterface $connection
@param array|null          $event_handlers
Build model at the given path .