src/CRUD.SqliteAdapter.js
function createFixtures(entity) {
        return new Promise(function(resolve, reject) {
            if (!entity.fixtures) return resolve();
            return Promise.all(entity.fixtures.map(function(fixture) {
                CRUD.fromCache(entity.getType(), fixture).Persist(true);
            })).then(resolve, reject);
        });
    }
function createFixtures(entity) {
        return new Promise(function(resolve, reject) {
            if (!entity.fixtures) return resolve();
            return Promise.all(entity.fixtures.map(function(fixture) {
                CRUD.fromCache(entity.getType(), fixture).Persist(true);
            })).then(resolve, reject);
        });
    }
function createFixtures ( entity ) { return new Promise ( function ( resolve , reject ) { if ( ! entity . fixtures ) return resolve ( ) ; return Promise . all ( entity . fixtures . map ( function ( fixture ) { CRUD . fromCache ( entity . getType ( ) , fixture ) . Persist ( true ) ; } ) ) . then ( resolve , reject ) ; } ) ; }
Insert fixtures for an entity if they exist
@param {CRUD.Entity} entity entity to insert fixtures for
@return {Promise} that resolves when all fixtures were inserted or immediately when none are defined
Insert fixtures for an entity if they exist