Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Make a new query builder inside a model afterCreate callback
Post: Make a new query builder inside a model afterCreat...

Hi guys. i'm having troubles with the models callback... in my ProductModel.php, i've got this afterCreate callback PHP Code: -- public function createCatalogPivots($data){ if (! isset...
1,225 Views
0 Replies
04-11-2019, 08:26 AM
keulu
    Thread: problem with response and entity
Post: RE: problem with response and entity

yeepee !!!! Code: -- [ { "id": "1", "firstname": "Darth", "lastname": "Vader", "username": null, "email": "[email protected]", "password": "5e8...
7,660 Views
7 Replies
02-28-2019, 11:21 AM
keulu
    Thread: problem with response and entity
Post: RE: problem with response and entity

well... that the same Code: -- [ {} ] -- PHP Code: --
7,660 Views
7 Replies
02-28-2019, 11:04 AM
keulu
    Thread: problem with response and entity
Post: RE: problem with response and entity

ok I will take a look tomorow. thx for the link
7,660 Views
7 Replies
02-27-2019, 01:40 PM
keulu
    Thread: problem with response and entity
Post: RE: problem with response and entity

my bad, bad use of ResponseTrait. return $this->respond($users_data, 200); ->
7,660 Views
7 Replies
02-27-2019, 01:39 PM
keulu
    Thread: problem with response and entity
Post: RE: problem with response and entity

Call to undefined method App\Controllers\Users::respond() :S
7,660 Views
7 Replies
02-27-2019, 01:24 PM
keulu
    Thread: problem with response and entity
Post: problem with response and entity

How do you do guys ? nice ? ok 'cause I have a problem :D if my model return and object Entity, If i ask in my controller the typeof $entity->createdAt, it answer CodeIgniter\I18n\Time Object ok nice...
7,660 Views
7 Replies
02-27-2019, 12:01 PM
keulu
    Thread: Model / Entities relation
Post: RE: Model / Entities relation

I will start a new topic. Models & Entities are not the problem.
10,679 Views
6 Replies
02-27-2019, 11:52 AM
keulu
    Thread: MY_I18n_Model
Post: MY_I18n_Model

Hi guys, just want to share my i18n_model with you. here is a gist. Give me feedback if you want or ask for any help. https://gist.github.com/keulu/b54791e968231ed438d4cc3dec893aa0
2,062 Views
1 Replies
02-27-2019, 11:38 AM
keulu
    Thread: CI4 Model or Entity with Relation between two tables
Post: RE: CI4 Model or Entity with Relation between two ...

you can set your join in the before find and explode data in the after find. for example in cakePHP, when you use join in a query builder, this is what it return : Code: -- { "User": { "id"...
4,894 Views
2 Replies
02-27-2019, 10:52 AM
keulu
    Thread: Model / Entities relation
Post: RE: Model / Entities relation

ok, i start to understand how it work. In a perfect world, i request my database via the model and he give me an object UserEntity. And in a perfect world, i just have to send it as it with all my ...
10,679 Views
6 Replies
02-26-2019, 01:41 PM
keulu
    Thread: Model / Entities relation
Post: RE: Model / Entities relation

Sooooo... I had a difference beetween my $returnType ( returnType = "\App\Entities\User"; ) and lonnieezell User Entity ( returnType = User::class; ) but it makes no difference. In my controller : v...
10,679 Views
6 Replies
02-26-2019, 11:31 AM
keulu
    Thread: Model / Entities relation
Post: RE: Model / Entities relation

puschie Wrote: (02-22-2019, 03:10 AM) -- you need to use the magic setter/getter in your entity to use _options -- ok, i will give a try, thx for the advise :) Edit : Nope... that doesn't ...
10,679 Views
6 Replies
02-22-2019, 07:09 AM
keulu
    Thread: starting a development with CI alpha.
Post: RE: starting a development with CI alpha.

Ok, i will try it as soon as the first beta will come :) thx for the advise
11,923 Views
11 Replies
02-21-2019, 10:41 AM
keulu
    Thread: Model / Entities relation
Post: Model / Entities relation

Hi guys, on alpha5, I don't think that the entities object is correctly populated. If my model return an entity or an object and fill the entity. No fields are casted No fileds are datamaped ...
10,679 Views
6 Replies
02-20-2019, 02:45 AM
keulu
    Thread: starting a development with CI alpha.
Post: RE: starting a development with CI alpha.

ciadmin Wrote: (02-19-2019, 11:53 AM) -- What technologies (database, email, ...) or which libraries (RPC, REST, ...) are you hoping to have available for your project? That could influence your de...
11,923 Views
11 Replies
02-20-2019, 02:06 AM
keulu
    Thread: starting a development with CI alpha.
Post: RE: starting a development with CI alpha.

ciadmin Wrote: (02-19-2019, 09:44 AM) -- Disclaimer: I have a slight bias :-/ ps - the next release should be the first beta. -- yeah i suspected that, But in fact, it's not a problem. You have a ...
11,923 Views
11 Replies
02-19-2019, 11:13 AM
keulu
    Thread: starting a development with CI alpha.
Post: starting a development with CI alpha.

Do you think guys CI4 is enough mature to start a project with a long time of dev. ? Migrate from CI3 to CI4 seems to be complicated, i have to make a choice today. I start a new project (approx 18...
11,923 Views
11 Replies
02-19-2019, 09:33 AM
keulu
    Thread: CodeIgniter4.0.0-dev Reaches Milestone 1
Post: RE: CodeIgniter4.0.0-dev Reaches Milestone 1

Great Work dudes I was disapointed with the new way to load controller, libs, helpers etc... but namespace is life :) Debugs tools are nice. d() and the toolbar are just perfect. Thx guys, ...
164,937 Views
67 Replies
07-13-2016, 12:10 AM
keulu
    Thread: is_unique in Form Validation on UPDATE
Post: RE: is_unique in Form Validation on UPDATE

for me, if i have to check differents values on UPDATE or INSERT, I create 2 validation rules. // user_validation_insert => 'email' => 'valid_email|is_unique[user.email]' // user_validation_up...
23,074 Views
6 Replies
06-06-2016, 05:27 AM
keulu

Theme © iAndrew 2016 - Forum software by © MyBB