Esempio n. 1
0
 /**
  * @param DataMapper $mapper
  * @return IngredientType[]
  */
 public function createDefaultIngredientType(DataMapper $mapper)
 {
     $this->assert($mapper->getEntityClass() == IngredientType::class);
     return $mapper->createMany([['name' => 'Bahan Makanan'], ['name' => 'Pengolahan'], ['name' => 'Pelengkap'], ['name' => 'Lainnya']]);
 }
Esempio n. 2
0
 /**
  * @param DataMapper $mapper
  * @return UnitType[]
  */
 public function createDefaultUnitType(DataMapper $mapper)
 {
     $this->assert($mapper->getEntityClass() == UnitType::class);
     return $mapper->createMany([['name' => 'Berat'], ['name' => 'Volume'], ['name' => 'Unit']]);
 }