Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter v4.0.4 released
#31

Fail when entity->fill($data) from Array

CodeIgniter v4.0.4

Entity fill



$data = $this->request->getPost();

$user = new App\Entities\User();

$user->fill($data);







Original CodeIgniter v4.0.4

vendor/codeigniter4/framework/system/Entity.php

Line: 118



/**

* Takes an array of key/value pairs and sets them as

* class properties, using any `setCamelCasedProperty()` methods

* that may or may not exist.

*

* @param array $data

*

* @return \CodeIgniter\Entity

*/

public function fill(array $data = null)

{

if (! is_array($data))

{

return $this;

}



foreach ($data as $key => $value)

{

$this->$key = $value;

}



return $this;

}





------------

Es:

Estoy muy agradecido, muy contento de trabajar con CI desde hace mucho tiempo, esto es un trabajo fantastico. Gracias.

En:

I am very grateful, very happy to work with CI for a long time, this is a fantastic job. Thank you
Reply
#32

Thanks CI Teams
Only Use CI4 for my works

Learning CI4 from my works, from errors and how to fix bugs in the community

Love CI & Thanks CI Teams

Reply
#33

Great work
Thanks CI teams
Web development at Panpic
Reply
#34

Amazing work team!

Cheers
Soy Pili Rodríguez, y este es mi pequeño rincón de decoración en el mundo online. Tomando como referencia los mejores blogs de decoración, www.decorarcongusto.com nace de mi incesante búsqueda de inspiración a través de internet para decorar mi propia casa. 
Reply
#35

Thanks for your work! Big thanks!
Reply
#36

Good to hear this.

Please, can anyone guide me how to update my App  to be compatible with PHP 7 and above. It is presently on PHP 5.6

Thanks so much.
Reply
#37

any docs for migration from CI 3 to CI 4.?
Reply
#38

http://codeigniter.com/user_guide/instal...e_4xx.html
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
Reply
#39

Great work CI Team !! Keep helping the community with Amazing work!!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB