Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 698 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 698 Bytes

Build Status

🤖 Bnder


Bnder is inspired by the Laravel factories, it is meant to be a quick and clean way to create and persist and your Doctrine entities. It relies heavily on reflection class providing a fluent api.

Installation

composer require bnder/bnder

Example

$properties = [
    'user' => new User(),
    'email' => '[email protected]',
];

Bnder::registerFactory(Factory::create(SampleEntity::class, $properties));

// This will create an array of 3 
$entities = Bnder::load(SampleEntity::class)->create(['email' => '[email protected]'], 3);