Skip to content

Latest commit

 

History

History
125 lines (97 loc) · 4.84 KB

changelog.md

File metadata and controls

125 lines (97 loc) · 4.84 KB

DaoGen Changelog

0.5.24

  • Sanitize order and limit keywords in SQL statements (Prevent SQL injection)
  • Fixes in table name generation, preserving _ in table names for SQL statements

0.5.23

  • In controller class, added guzzle, initialized body variable & fixed handleDelete method

0.5.22

  • Corrections in entity creation and abstract files

0.5.21

  • Root namespaces on php functions
  • Fixes CASE_LOWER for array_key_change_case()

0.5.20

  • entity generation bug fix for TEXT, LONGTEXT type of fields (set() methods use mb_substr() with length)

0.5.19

  • entity classes check for NULL in text fields, and send null instead of ''

0.5.18

  • By default text fields are truncated to the length of the DB fieldin setXXX() method

0.5.17

  • DAO: Deadlock retry loops inside update/insert
  • Tests: Generates PHPUnit v8 compatible test cases
  • Root namespace for functions
  • Exception handling and logging for exceptions, rethrows exceptions for caller

0.5.16

  • Removed Exception catching/logging in AbstactBaseDao methods

0.5.15

  • PREG Match fix for MySQL table names

0.5.14

  • fetchCount() fixed in AbstractBaseDao

0.5.13

  • Added parsing of MSSQL DDL

0.5.10

  • Fixed bug in namesapce strings for all php output files

0.5.9

  • Added Package name as input. Empty package name defaults to [Package]
  • Controller generation enhanced, made Spin compatible, better field checking
  • Namespace handling changed. Assumes \\App\\Models\\<Namespace> for Entity files
  • Namespace handling changed. Assumes \\App\\Models\\Db\\<Namespace> for Dao files
  • Namespace handling changed. Assumes \\App\\Controllers\\v1\\<Namespace> for Controller files
  • Namespace handling changed. Assumes \\App\\Tests\\<Namespace> for Test files

0.5.8

  • Adopted for Spin Framework
  • Uses /App/Models as root for Entities and DAO objects

0.5.7

  • Fix: Fized singularization of Table names

0.5.6

  • Chg: Changes to cache handling on insert/update/delete

0.5.5

  • New: Moved project to Github
  • Fix: Added code to handle 'es' ending table names to change ending to just 's'.

0.5.4

  • Fix: Default values set to properties by Entity-Object now doefaults to NULL unless a defailt value was set in the SQL Create Table statement
  • Fix: Controller generated entityObjects without the 'Entity' keyword at the end of classname

0.5.3

  • Fix in Controllers generated $args[] retreival in GET and DELETE has an added "?? null;" to make args passing not fail with warnings
  • Added automatic Test Case generation for Entities
  • Controller classes no longer refer to any specific connection (was 'main')
  • AbstractBaseDao::execCustomGetLastId() LastInsertId() only supported on MySql. Now Firebird,PostgreSql,Oracle,CockroachDb work with 'RETURNING id'; instead
  • Dao classes now "return true;" instead of "return null;" when generated code returns error in handle*() methods
  • Renamed Entity objects to have Suffix "Entity" to be clearer what they are
  • Makes Plural table names Singular. Support for "Properties" type of wors as well
  • BLOB fields and default PHP value of "". Now default value is ''
  • ClassName was taken from TableName, and was lowercased. Now ucwords() it correctly
  • Added if () {} with error logging if insert() or update() failes in Controller generation

0.5.2

  • BugFix in handleGET() in controller generation
  • Bugfix in Entity generator for DateTime and TimeZone handling

0.5.1

  • AbstractBaseDao new method fetchCount()
  • Uses renamed \Nofuzz\Database\AbstractBaseDao as base for AbstractBaseDao
  • Uses renamed \Nofuzz\Database\AbstractBaseEntity as base for AbstractBaseEntity
  • Copies AbstractBaseDao and AbstractBaseEntity files to output

0.5.0

  • Bugfix on cacheGetItemByField() in AbstractBaseDao
  • Code cleanup / Comments Cleanup

0.4.9

  • DAO: fetchByKeywords() now includes ALL fields in table. Text fields use " LIKE :" the rest use " = :"
  • DAO: All fetchBy() methods are depricated/removed
  • DAO: New fetchBy() method added to AbstractBaseDao
  • Modifyed places that use fetchBy() statements to follow new method naming
  • Added commented lines with all set to handlePOST()

0.4.8

  • Bugfixes

0.4.7

  • Merge differances from 2 separate branches
  • Bugfix Namespace in AbstractBaseDao and AbstractBaseEntity
  • Bugfix in Dao generated classes for $this->cacheSetItem();

0.4.6

  • Entity class no longer contains "use ..." and expands namespace where needed
  • Dao class no longer contains "use ..." for AbstractBaseDao and expands namespace where needed
  • Entity class now checks for NULL on dateTime/Timestamp fields in setXXX() method
  • Bugfix on parsing table ddl
  • Bugfix on creating Entity class (use removed)

0.4.5

  • Cache Methods to AbstractbaseDao
  • Cache calls for makeEntity(), fetchBy*()
  • Added AbstractbaseDao and AbstractBaseEntity classes in DaoGen dir
  • Bugfixes to output structure (formatting)