Commit Graph
100 Commits
Author SHA1 Message Date
Dave Mc Nicoll 0fd6889c6f - ID attribute is now readonly by default (since autoincremented) 2025-02-03 19:56:35 +00:00
Dave Mc Nicoll 7c589ab7b4 - Fixed forgotten return value form listColumns in SQLite driver 2024-12-09 20:42:37 +00:00
Dave Mc Nicoll 589524ca3a - Added limitation on fixedValue in Where attribute 2024-12-09 16:40:50 +00:00
Dave Mc Nicoll 1fac12c928 - Added relation's shortcut attributes 2024-12-02 21:36:03 +00:00
Dave Mc Nicoll 9eed2fe1a8 - Added caching mechanism as an event listener 2024-12-02 15:22:30 -05:00
Dave Mc Nicoll 70c6cde603 - Latest commit into this branch, merging after 2024-11-13 14:02:03 -05:00
Dave Mc Nicoll 079a3fd110 Merge branch 'notes-2.x' of https://git.mcnd.ca/mcndave/ulmus into notes-2.x 2024-11-11 20:42:51 +00:00
Dave Mc Nicoll ec4d02b9d9 - Removed 'description' property and moved it into an appropriate attribute from lean-api package 2024-11-11 20:42:29 +00:00
Dave Mc Nicoll 35ceb97241 - Added Exists method 2024-11-10 13:08:05 +00:00
Dave Mc Nicoll 83f673b37f - Mostly bug fixes done on this code push 2024-11-01 16:14:14 -04:00
Dave Mc Nicoll 411992c7a8 - Added a new Field Mapper to SQLs Adapters.
- Defined missing MySQL fields attributes
- WIP on lean-console's migration methods
2024-10-21 18:12:24 +00:00
Dave Mc Nicoll 5f4f23a8e4 - Allowed a JOINed entity to be null if nothing is loaded from a query and it's field is nullable 2024-10-14 16:32:23 +00:00
Dave Mc Nicoll 2fda7e82d7 Merge branch 'notes-2.x' of https://git.mcnd.ca/mcndave/ulmus into notes-2.x 2024-10-14 16:07:28 +00:00
Dave Mc Nicoll 573d4cc06b - RelationBuilder now returns NULL if no entity were found AND given field is nullable 2024-10-14 16:07:12 +00:00
Dave Mc Nicoll 18313fd7f5 - Forgot to set escapeIdentifier as static 2024-10-14 14:43:03 +00:00
Dave Mc Nicoll 9503b24467 - Fixed some bugs within SearchRequestFromRequestTrait 2024-10-14 14:41:35 +00:00
Dave Mc Nicoll 3c2ae86653 - Field mapper is now removed from Adapters and set into it's own object
- Added a PK to Column (IS)
2024-10-14 12:53:15 +00:00
Dave Mc Nicoll 9977a25cf5 - Forgot a dump() 2024-10-07 19:39:52 +00:00
Dave Mc Nicoll 3ba8a2a5d0 - Fixed 'value' for SearchRequestOrderBy and also fixed a typo where SearchManual would not be set 2024-10-07 19:38:29 +00:00
Dave Mc Nicoll 4106c8db91 Merge branch 'notes-2.x' of https://git.mcnd.ca/mcndave/ulmus into notes-2.x 2024-10-07 19:37:10 +00:00
Dave Mc Nicoll d5cca085bc - Removed offset if limit = 0 2024-10-07 19:36:53 +00:00
Dave Mc Nicoll 8b1c11676d - Added OrderBy (heavy WIP, will be recoded 2024-08-30 18:59:48 +00:00
Dave Mc Nicoll d4181065cf Merge branch 'notes-2.x' of https://git.mcnd.ca/mcndave/ulmus into notes-2.x 2024-06-28 11:46:46 +00:00
Dave Mc Nicoll 62998faf40 - WIP on SearchRequest enums and manual searchs 2024-06-28 11:46:09 +00:00
Dave Mc Nicoll 0c8591f238 - Added multiple parameters on SearchParameter 2024-06-05 17:47:31 +00:00
Dave Mc Nicoll bbfd7c02b4 - WIP on SearchAttributes supporting Request's attributes 2024-06-04 13:33:48 +00:00
Dave Mc Nicoll bd9078230d - Multiple bug fixes related to notes 2.x 2024-05-31 12:26:39 +00:00
Dave Mc Nicoll 2de3139c80 - Added description to most attributes 2024-05-27 18:09:22 +00:00
Dave Mc Nicoll e37eeb85f1 Merge branch 'master' into notes-2.x 2024-05-21 14:01:50 +00:00
Dave Mc Nicoll 7de0ecb028 - Fixed SearchLike attribute 2024-05-21 13:00:19 +00:00
Dave Mc Nicoll 1dd9da6eb6 - Fixes done for QueryBuilderInterface 2024-04-24 11:23:10 -04:00
Dave Mc Nicoll 9fdebf454d - Started working on decoupling QueryBuilder from SqlQueryBuilder
- WIP on SearchRequest attributes
- Began working on removing 'Ulmus' class
- WIP on removing SQL query building from Repository (which will become SqlRepository)
2024-04-17 15:54:48 -04:00
Dave Mc Nicoll 4571517dc8 - Added some SearchRequest attributes ; now it's even simpler to add searchable fields
- Began decoupling of QueryBuilder from native MySQL method ; some works needs to be done on for the Repository object splitting also.
2024-04-09 19:14:27 -04:00
Dave Mc Nicoll d4d68a029d - Fixed a problem of invalid comparison types in empty IN() query fragment 2023-11-24 11:31:54 -05:00
Dave Mc Nicoll ea667db552 - Testing another boolean handling method 2023-11-20 15:24:23 -05:00
Dave Mc Nicoll afe5144dc7 - Added a new value binding methods 2023-11-20 15:21:17 -05:00
Dave Mc Nicoll 7f8780d328 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2023-11-17 16:00:59 -05:00
Dave Mc Nicoll 9a9f473f3f - PDO Params are now properly (mostly..) binded, bool, null and int are now handled correctly 2023-11-17 16:00:29 -05:00
Dave Mc Nicoll c1755d250b Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2023-11-08 09:27:26 -05:00
Dave Mc Nicoll acab934f6f - Some bugfixes applied live 2023-11-08 09:27:03 -05:00
Dave Mc Nicoll c2cccc0222 - Fixed a proble within EntityInterface with field(s) which needed a false instead of bool 2023-11-07 11:12:59 -05:00
Dave Mc Nicoll ab582c9318 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2023-11-07 11:02:06 -05:00
Dave Mc Nicoll a4b81f1932 - Added support for closure in Virtual field 2023-11-07 11:01:55 -05:00
Dave Mc Nicoll 756474d460 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2023-11-01 11:26:10 -04:00
Dave Mc Nicoll d297fd9e86 - Fixed a bug which caused a problem using offset without limits 2023-11-01 11:25:59 -04:00
Dave Mc Nicoll 8e0dce3e71 - Still WIP on Api's wrapper 2023-10-27 18:33:48 -04:00
Dave Mc Nicoll cc741566fb - Bugfixes made while working on lean/console database migrations 2023-08-31 09:15:50 -04:00
Dave Mc Nicoll 8489cb4841 - Added some options to withJoin() method of repository 2023-08-29 16:32:25 -04:00
Dave Mc Nicoll a4743b471c - saveAll() now also supports arrays 2023-05-12 18:56:59 +00:00
Dave Mc Nicoll bd61522a07 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2023-04-13 15:39:21 -04:00
Dave Mc Nicoll f3712c9cc7 - Changed returned object from PdoObject runQuery method correcting 'Creation of dynamic property PDOStatement:: is deprecated' 2023-04-13 15:39:16 -04:00
Dave Mc Nicoll 3c5aa51850 - WIP on PHP 8.2 conversion 2023-03-29 11:30:46 -04:00
Dave Mc Nicoll c6bfaa05f2 - Added support for field value in Where attribute 2023-02-23 12:15:31 -05:00
Dave Mc Nicoll c9c6a11ebd - Fixed a bug caused by the addition of Attributes (on Ignore tags) and ajusted the EntityTrait with it 2023-02-08 16:37:48 +00:00
Dave Mc Nicoll dcccce7893 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2023-02-03 14:06:13 +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 Mc Nicoll 26febb631d Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2023-01-14 02:25:10 +00:00
Dave Mc Nicoll 5ef20533b2 - Fixed a bug with the IN query 2023-01-14 02:22:14 +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 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 Mc Nicoll 84682d1c8e Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2022-06-21 15:32:31 +00:00
Dave Mc Nicoll 52f240ef15 -Resetting encrypt if value is false 2022-06-21 15:31:49 +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 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 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 58afe841e7 - Fixed a double negative 2021-08-27 18:04:36 +00:00
Dave Mc Nicoll 7fb591e1f5 - A lot of fixes made again in this patch 2021-05-24 20:03:38 +00:00
Dave Mc Nicoll 9e84bd3536 - Set ID as a bigint by default now.
- EntityCollection now transforms array received from append() into entity and then append them.
- Corrected a big bug within QueryBuilder which was missed when it was made compatible with MSSQL.
2020-12-04 13:21:59 -05: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 Mc Nicoll 27d5fd0b08 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2020-10-06 11:46:00 -04:00
Dave Mc Nicoll 5d00a7e394 - Fixed GroupBy 2020-10-06 11:43:31 -04:00
Dave Mc Nicoll 47953a6165 Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus 2020-10-06 11:39:01 -04:00
Dave Mc Nicoll 07ba3f611b - Refractored Date/time fields
- Added an implode function on EntityCollection
2020-10-06 11:35:54 -04: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 1839726dc0 - Fixed string's length based on annotation (if set) 2020-04-14 11:36:55 -04:00
Dave Mc Nicoll 2c7449b733 - Fixed a bug within table's name output of Insert and Update where old code was causing a crash. 2020-04-14 10:32:41 -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
Dave Mc Nicoll c64c7778bd - Work done on many-to-many relations - code must still be refactored out of the EntityTrait.
- Fixed Entity::field("propertyname") function to look for name into @Field() annotation and returns it if it exists.
- A lot of bug fixes made into SQL fragments.
2020-04-09 09:50:09 -04:00
Dave Mc Nicoll 1456fe91f2 - Fixed the SearchRequestInterface missing filter() function. 2020-04-09 09:46:22 -04:00
Dave Mc Nicoll f98cb2ded0 Merge branch 'master' of https://github.com/mcNdave/ulmus 2020-03-28 22:16:45 -04:00
Dave Mc Nicoll 938639a590 - Multiple bugfixe linked to query fragments
- Added a new SearchRequest package to handle search request efficiently
2020-03-28 22:13:29 -04:00
Dave Mc Nicoll 6e84fc7195 - Fixed a bug while retrieving a non-existing field (from a table which has a field not included within your entity) 2020-03-26 16:28:03 -04:00
Dave Mc Nicoll 4b29232543 - Bugfix within PdoObject and Repository
- Added some utilities methods to EntityCollection
2020-03-19 09:55:00 -04:00
Dave Mc Nicoll d03f9ece36 - Removed debug lines 2020-02-17 08:25:09 -05:00
Dave Mc Nicoll d1961ec807 - Work done on insert() and update() function from QueryBuilder.
- Fixed save() and saveAll() from repository
- QueryBuilder can now be flushed after queries.
2020-02-17 08:23:41 -05:00
Dave Mc Nicoll bd027610f4 - Removed a debug line 2020-02-10 08:27:48 -05:00