Skip to content

Better default JOINs

Compare
Choose a tag to compare
@phpfui phpfui released this 29 Mar 15:38
· 45 commits to main since this release
  • Table::addJoin() now has better defaults
    • If $on is empty, then the following defaults are tried:
      • Join on the primary key of the join table if it exists on both tables
      • If field does not exist on both tables, then use the primary key of the main table
    • If $on is a non-empty string, use as the join field
    • Use \PHPFUI\ORM\Condition for complex joins
  • Table::update() now supports joins
  • Literal class is now supported for Condition