Skip to content

Releases: phpfui/ORM

Make extended fields optional

Choose a tag to compare

@phpfui phpfui released this 08 Jul 00:37
  • Duplicated fields created by joins are extended with the joined table name and an underscore by default, can now be turned off
  • Table::getSelectSQL() method is now public
  • Updated typos in the documentation

Better Table::set methods

Choose a tag to compare

@phpfui phpfui released this 17 Jun 18:09
  • Added setJoin, setSelect and setUnion to clear previous values
  • Renamed setSelectFields to addSelectFields

RecordCursor creation of any type

Choose a tag to compare

@phpfui phpfui released this 16 Jun 20:46

Table::getRecordCursor() takes an optional Record type so you can return a RecordCursor of a different type than the table

Migration primary key fix

Choose a tag to compare

@phpfui phpfui released this 31 Jan 19:16

Adding a primary key in a migration no longer ignores the other changes to the table in the same migration.

Fix Migration::indexExists

Choose a tag to compare

@phpfui phpfui released this 24 Jan 00:27
V3.0.2

Fix Migration::indexExists

Fixed Composite Primary Keys

Choose a tag to compare

@phpfui phpfui released this 02 Dec 21:42
  • Also added composite primary key test

Full Changelog: V3.0.0...V3.0.1

PostGre support

Choose a tag to compare

@phpfui phpfui released this 30 Nov 18:48
  • Added support for PostGreSQL

    • Migrations for indexes and changing columns will have to be done by custom SQL queries in the Migration class.
  • Now supports SQLite insertOrIgnore and insertOrUpdate for the Record class

  • Added more unit tests

  • Porting to V3 from V2

    • \PHPFUI\ORM\Migration::alterColumn takes only 3 parameters and does not rename the column. Use renameColumn instead.

Revert from PostGre porting

Choose a tag to compare

@phpfui phpfui released this 07 Nov 21:05
V2.0.09

Revert some PostGre porting

PHP 8.5 Support

Choose a tag to compare

@phpfui phpfui released this 07 Nov 16:02
  • PHP 8.5 Support
  • Start of PostGreSQL port, but it is not fully supported yet
  • Revised unit tests to support different databases for testing

Better length for Decimal fields

Choose a tag to compare

@phpfui phpfui released this 04 Aug 14:59
  • Decimal fields now have the correct length
  • Fields with a length of zero pass the maxlength validator
  • Updated documentation