ikezoe-makoto/cakephp3bulker

cakephp3bulker plugin for CakePHP

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Type:cakephp-plugin

0.0.6 2017-06-12 15:10 UTC

This package is not auto-updated.

Last update: 2025-05-11 05:02:18 UTC


README

CircleCI

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require ikezoe-makoto/cakephp3bulker

Configuration

Load the plugin:

// In /config/bootstrap.php
Plugin::load('Cakephp3Bulker');

Make a model Bulker

Use the Bulker Behavior on your model Table class:

// in src/Model/Table/UsersTable.php
...
class UsersTable extends Table
{
    public function example()
    {
        $this->addBehavior('Cakephp3Bulker.Bulker');
        ...
    }

Use

Bulk Insert && Bulk Update

// in src/Model/Table/UsersTable.php
$this->saveBulk($manySaveData);