public function modifyDatabase()
    {
        foreach ($this->getDatabase()->getTables() as $table) {
            if (!$table->hasPrimaryKey()) {
                $b = clone $this;
                $table->addBehavior($b);
            }
        }
    }
public function modifyDatabase()
    {
        foreach ($this->getDatabase()->getTables() as $table) {
            if (!$table->hasPrimaryKey()) {
                $b = clone $this;
                $table->addBehavior($b);
            }
        }
    }
public function modifyDatabase ( ) { foreach ( $ this -> getDatabase ( ) -> getTables ( ) as $ table ) { if ( ! $ table -> hasPrimaryKey ( ) ) { $ b = clone $ this ; $ table -> addBehavior ( $ b ) ; } } }
Copy the behavior to the database tables
Only for tables that have no Pk
Copy the behavior to the database tables Only for tables that have no Pk