Skip to content

biiiig update

Jiří Pudil requested to merge type-object into master
  • Types and their mappings are represented via a (generic) Type object. This allows for encapsulation of mapping.

Before:

$table->findBy([
    $table::ID => $queriedId->toString(), // <- I have to duplicate mapping implementation
]);

After:

$table->findBy([
    $table::ID => $table->id()->map($queriedId),
]);
  • Scaffolding can optionally generate default primary key implementation.

  • Proper nette/di extension.

  • 🍏 Tests 🎉

cc @dkurowski

Merge request reports

Loading