Commit Graph

66 Commits

Author SHA1 Message Date
Dave M. 58bdce0ea8 - Some small bugfixes done 2023-03-23 14:56:13 +00:00
Dave Mc Nicoll c6bfaa05f2 - Added support for field value in Where attribute 2023-02-23 12:15:31 -05:00
Dave M. d4a9fc8463 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2023-02-07 16:49:39 +00:00
Dave M. 94edb09352 - Added a new RelationTypeEnum 2023-02-07 16:49:25 +00:00
Dave Mc Nicoll 31f031715d - Fixed a bug within notIn() statement 2023-02-03 14:06:00 +00:00
Dave Mc Nicoll 88e9f048db - Select now only query existing entity's fields on select() and withJoin() statements. 2023-01-27 15:46:16 +00:00
Dave Mc Nicoll 70021d829d - WIP on attributes 2023-01-26 18:47:53 +00:00
Dave M. e6d0279c1a - WIP on attributes ; on testing phase 2023-01-26 13:25:59 +00:00
Dave M. b6752f4364 WIP on docs and added basic enums supports 2023-01-14 02:19:42 +00:00
Dave Mc Nicoll 902167c2ed - Fixed the JOIN comparison (instead of putting it in the main query) 2022-11-24 19:22:49 +00:00
Dave Mc Nicoll b20e537038 - Added a new @PrimaryKey annotation to replace the too-specific property-wise @Id 2022-11-11 13:57:29 +00:00
Dave Mc Nicoll 0e8443b1c1 Prepping everything for a PHP 8 release 2022-10-10 14:26:27 +00:00
Dave M. 00ebf3381f - Completed merge 2022-07-15 19:59:38 +00:00
Dave Mc Nicoll 430cd03bc4 - Fixed an important bug when an alias was not given 2022-06-29 19:31:27 +00:00
Dave Mc Nicoll 8507283d27 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2022-06-28 12:45:25 +00:00
Dave Mc Nicoll fc9b536eee - Quick MSSQL fix 2022-06-28 12:37:02 +00:00
Dave M. e1990e7cc0 - Merge with Mssql repository bugfix 2022-06-21 15:38:06 +00:00
Dave Mc Nicoll e14a3670fc -Fixed join order in queries 2022-05-10 13:19:48 +00:00
Dave Mc Nicoll 325704260b - Fixed conflicts 2022-04-13 03:38:57 +00:00
Dave Mc Nicoll 16d76470da - A lot of bugfixes and fitting to accomodate ldap adapter 2022-04-13 03:31:48 +00:00
Dave M. c14644cdda - A lot of work done on bug fixing. Added a new SQLite adapter 2022-01-28 16:37:35 +00:00
Dave Mc Nicoll f14347f01d Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2021-11-24 16:36:13 +00:00
Dave Mc Nicoll 2210853093 - Added a missing return from newly created items in save() ; also added a count in saveAll() method allowing to know how many items were saved 2021-11-24 16:22:28 +00:00
Dave M. e4767f7c09 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2021-10-21 19:32:12 +00:00
Dave M. 9ad2e94d12 - Work done on Ulmus which were added within the Bottin de suppléance app 2021-10-21 19:02:59 +00:00
Dave Mc Nicoll dc5e088551 - Some bugfixes were made, added a new diff before saving results. Also, a new method was added for insert, update and delete respectively for other drivers to override as needed 2021-10-19 12:41:04 +00:00
Dave Mc Nicoll 0453e9cbc5 - Added the replace keyword 2021-08-02 15:13:17 +00:00
Dave Mc Nicoll 7fb591e1f5 - A lot of fixes made again in this patch 2021-05-24 20:03:38 +00:00
Dave M. 4df9ececba - Fixed a bug occuring when a field was already escaped 2021-04-23 03:03:01 +00:00
Dave M. 1469d167c4 - Added a closure on key to EntityCollection buildArray method.
- Some bugfixes done.
2021-03-29 20:01:31 +00:00
Dave M. 317d62ceaa - Some more work done to allow more flexibility for other plugins 2021-03-24 13:48:09 +00:00
Dave M. 3905047111 - A lot of bugfixes, mainly with escaping (still working on it to get 100% coverage) 2021-03-15 13:42:52 +00:00
Dave M. e3d0e45a4e - Some work done on correcting LDAP package compatibility 2021-03-09 15:25:46 +00:00
Dave M. 71de0a8ac1 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus
- Reworked the removeQueryFragment.
2021-03-01 16:31:26 +00:00
Dave M. 16c6eb57fb - Added a MssqlRepository
- Adapter some code to allow more flexibility for the new LDAP adapter from ulmus-ldap.
- Insert's fields are now escaped by default.
- A new RelationBuilder was added, a lot of code from the EntityTrait was moved into this. Some code from the Repository class will need to be moved there too.
2021-03-01 16:26:06 +00:00
Dave M. e7d5d5965b - Fixed the missing DISTINCT keyword while rendering select()
- Added a fragment remover in Repository
2021-03-01 16:10:15 +00:00
Dave M. 8f9332fbad Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2021-01-26 16:59:29 +00:00
Dave M. e465ecdf32 - Work done on Join and using the @Relation annotation in case there is no join.
- Added some field type (date, Datetime, Time)
- Added a new @Filter annotation which allows to filter repository from relation into a method.
2021-01-26 16:48:40 +00:00
Dave M. 7dd64abf29 - Added a LoadRelation for the repository.
- Added a new @Filter() annotation to the relation; adding it to JOIN is also coming.
- Some bugfixes done within the Where and ConditionTrait.
2021-01-06 19:35:45 +00:00
Dave Mc Nicoll f74d1907d9 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2020-11-27 12:21:10 -05:00
Dave Mc Nicoll 30a0a80cbe - Added some new method to EntityCollection (replaceWith, mergeWith, randomize, sort)
- WIP on virtual fields
- Some minor bugfixes
2020-11-27 12:09:15 -05:00
Dave M. efa957fe58 - Merged stash after pull 2020-10-16 15:27:54 +00:00
Dave M. 114fa5be09 - Had to fix a changed behaviour from PHP 7.4 and 7.4.x where __isset() and __get is not called on initialized properties anymore. 2020-10-16 15:04:05 +00:00
Dave Mc Nicoll 139504f8dd - Added the HAVING and TRUNCATE keyword
- Fixed GroupBy which was not implemented yet
- Added a new SQL raw() function
- From statement now accepts subqueries
2020-10-06 11:00:12 -04:00
Dave Mc Nicoll 538af38769 - Added a new EntityCollection factory 2020-06-29 11:36:41 -04:00
Dave Mc Nicoll 8e521025d3 - Some bugfixes made in Relation
- Fixed search() methods in EntityCollection
- Work done on Relations of EntityTrait ; a lot of work still to be done. It must also move to another file.
2020-06-11 08:47:15 -04:00
Dave Mc Nicoll 4d221859fc - Added Events to repository and entitytrait objects. Some more work to be done on this.
- Diverses bug fixes linked to join and relations
- Field date and datetime are now outputed using given locale.
2020-05-20 15:34:50 -04:00
Dave Mc Nicoll 026a0f4f83 - Fixed the QueryBuilder's escaping problem - adapters are now responsible for escaping identifiers.
- Added a MsSQL offset query fragment. There is still a problem with the way the Repository must act within another adapter.
2020-04-14 09:47:09 -04:00
Dave Mc Nicoll 3ff97f3bf0 - Added identifier escaping to match differents PDO drivers 2020-04-09 13:20:07 -04:00
Dave Mc Nicoll def8decb4e Merge remote-tracking branch 'origin' into dev-sql-escape 2020-04-09 10:00:48 -04:00