Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: model validationRules for nullable fields?
Post: RE: model validationRules for nullable fields?

kenjis Wrote: (01-14-2022, 04:22 PM) -- What values are some non-null invalid values? -- empty array, empty string, and false
536 Views
3 Replies
01-17-2022, 01:17 AM
lukmim
    Thread: model validationRules for nullable fields?
Post: model validationRules for nullable fields?

Is there a way of setting up model validation (for example "integer" or "numeric") for fields that are not required and also can be null? I'm aware of the "if_exist" (doesn't allow null values) and "...
536 Views
3 Replies
01-14-2022, 08:41 AM
lukmim
    Thread: joins ignored when updating
Post: joins ignored when updating

why does the update() process ignore the join()s?
322 Views
1 Replies
01-03-2022, 05:40 AM
lukmim
    Thread: why does Entity::fill() only accept arrays?
Post: why does Entity::fill() only accept arrays?

is there any particular reason Entity::fill() is made to only accept arrays but not objects? it seems to me it should be possible to fill an entity from an object (for example when data is sent via A...
416 Views
1 Replies
12-30-2021, 03:51 AM
lukmim
    Thread: how to unset mapped attribute in entities?
Post: how to unset mapped attribute in entities?

this guide to entities (https://codeigniter.com/user_guide/models/entities.html) says Quote: -- Code: -- unset -- and Code: -- isset -- only work on the mapped property, Code: -- $name --...
784 Views
2 Replies
12-23-2021, 04:57 AM
lukmim
    Thread: custom casting: Entities directory vs Entity directory
Post: custom casting: Entities directory vs Entity direc...

While trying out custom casting (https://codeigniter.com/user_guide/models/entities.html) I got confused by inconsistent directory naming. Should the entity class files be really located in App/Entiti...
620 Views
3 Replies
12-17-2021, 03:32 AM
lukmim
    Thread: how to implement custom exception management in CodeIgniter 4?
Post: RE: how to implement custom exception management i...

I don't see in what way these are "custom". They appear to be already defined in CI core. I'd like to define my own exceptions somewhere.
1,882 Views
6 Replies
11-12-2021, 08:26 AM
lukmim
    Thread: apply filter to specific controller without modifying routes
Post: apply filter to specific controller without modify...

Is there a way of telling one specific controller it should use a filter without modifying the Routes file?
527 Views
1 Replies
10-05-2021, 02:17 AM
lukmim
    Thread: multi query ?
Post: multi query ?

Is there a way of running a multi query? I don't see multi_query used anywhere in the sources
557 Views
1 Replies
09-17-2021, 07:34 AM
lukmim
    Thread: which DB columns are autoincrement
Post: RE: which DB columns are autoincrement

"database-agnostic" means I don't need to care whether the database is mysql, postgre, sqlite, etc. For example the getFieldData() function in codeigniter is database-agnostic: you can use it the same...
2,404 Views
8 Replies
09-17-2021, 07:32 AM
lukmim
    Thread: which DB columns are autoincrement
Post: which DB columns are autoincrement

It could be useful to have a database-agnostic way of determining which columns are autoincrement, ie. what column does the insert_id value returned from DB inserts belong to
2,404 Views
8 Replies
09-14-2021, 03:15 AM
lukmim
    Thread: space in quoted string in email is treated as not valid
Post: RE: space in quoted string in email is treated as ...

why? it's a direct example from the RFC. Also: (https://en.wikipedia.org/wiki/Email_address#Local-part) Quote: -- If quoted, it may contain Space -- Quote: -- space and special characters ...
1,025 Views
4 Replies
07-23-2021, 05:33 AM
lukmim
    Thread: Forum Email Activation
Post: RE: Forum Email Activation

even after multiple attempts I didn't receive the activation email using my work address, so I had to register at gmail
13,434 Views
11 Replies
07-21-2021, 03:28 AM
lukmim
    Thread: trailing slash misdirects resource controller
Post: RE: trailing slash misdirects resource controller

sorry, I don't see how it makes a POST request to /photos/ equivalent to a GET request to /photos in a REST resource. Seems like now I need to manually add a check if index() has been called with the ...
760 Views
2 Replies
07-21-2021, 12:04 AM
lukmim
    Thread: trailing slash misdirects resource controller
Post: trailing slash misdirects resource controller

when specifying a resource route according to the user guide (https://codeigniter.com/user_guide/incoming/restful.html#resource-routes): PHP Code: -- $routes->resource('photos'); -- the create() con...
760 Views
2 Replies
07-20-2021, 06:43 AM
lukmim
    Thread: space in quoted string in email is treated as not valid
Post: space in quoted string in email is treated as not ...

this is just a tiny nitpick: emails containing spaces in quoted strings are treated by CI4 as not valid (using the "valid_email" validation) Code: -- "Fred Bloggs"@example.com -- see https://datat...
1,025 Views
4 Replies
07-20-2021, 02:06 AM
lukmim
    Thread: Database Num_rows()?
Post: RE: Database Num_rows()?

nonebeliever Wrote: (03-03-2020, 02:55 AM) -- MySQL has SQL_CALC_FOUND_ROWS which will calculate the total number of results within the same query used to  fetch the result set. -- SQL_CALC_FOUND_R...
16,628 Views
11 Replies
07-20-2021, 12:49 AM
lukmim
    Thread: builder's set() captured by model doesn't support object
Post: builder's set() captured by model doesn't support ...

The documentation for update() (https://codeigniter.com/user_guide/models/model.html)says I can use PHP Code: -- $userModel     ->whereIn('id', [1,2,3])     ->set(['active' => 1])     ->update()...
659 Views
1 Replies
07-19-2021, 07:51 AM
lukmim

Theme © iAndrew 2016 - Forum software by © MyBB