public function withOrderPersistedTo(string $columnName) : OneToManyRelationDefiner
    {
        $this->orderPersistColumn = $columnName;
        $this->orderByAsc($columnName);

        return $this;
    }
public function withOrderPersistedTo(string $columnName) : OneToManyRelationDefiner
    {
        $this->orderPersistColumn = $columnName;
        $this->orderByAsc($columnName);

        return $this;
    }
public function withOrderPersistedTo ( string $ columnName ) : OneToManyRelationDefiner { $ this -> orderPersistColumn = $ columnName ; $ this -> orderByAsc ( $ columnName ) ; return $ this ; }
Defines the one-to-many relation to persist the 1-based
order index of the related objects to the supplied column.
This will automatically load the columns in the persisted order.

This will also automatically register a persist hook on the related
entity mappers that will load new sequential order indexes if the
entities are persisted outside of the relationship and directly through
its own entity mapper.

@param string $columnName

@return OneToManyRelationDefiner
Defines the one - to - many relation to persist the 1 - based order index of the related objects to the supplied column . This will automatically load the columns in the persisted order .