Search by

ilbronza / operators

ilBronza

:operators_manager

Package info

github.com/ilBronza/Operators

Homepage

pkg:composer/ilbronza/operators

Statistics

Installs: 97

Dependents: 2

Suggesters: 1

Stars: 0

Open Issues: 0

v2.5.1 2026-07-31 15:17 UTC

This package is auto-updated.

Last update: 2026-10-20 09:28:32 UTC


README

Latest Version on Packagist Total Downloads Build Status StyleCI

This is where your description should go. Take a look at contributing.md to see a to do list.

Installation

Via Composer

$ composer require ilbronza/operators

Usage

OperatorRowAssociatorHelper::associateRowByParameters() requires an existing operator/contracttype association by default. To create missing associations while adding rows, set this option in the project's config/operators.php:

'models' => [
    'operatorRow' => [
        'createMissingOperatorContracttype' => true,
    ],
],

New associations use the configured operatorContracttype model and its normal events. Only operator_id and contracttype_id are supplied; costs, levels, and other optional fields keep their model/database defaults. Soft-deleted associations are not restored. If creation is disabled, the helper raises a validation error naming the operator and the role before adding the row.

The existing row flow has no encompassing transaction: unless the caller opens one, a later failure can leave the new association persisted. The package's association table also has no unique constraint on the operator/contracttype pair, so concurrent requests can still create duplicates.

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.