Entity add custom properties |
PHP Code: How to initialize an empty attribute $this ->attributes['user'] = null ? To avoid warning. Use only in the constructor? And today there was a question with this: $image ->toRawArray() return virtual $image->user This breaks $this->builder()->insertBatch($images->toRawArray()); because $image->user doesn't exist in the table (Object of class App\Models\Entity\User could not be converted to string )
Simple CI 4 project for beginners codeigniter-expenses
|
Messages In This Thread |
Entity add custom properties - by ozornick - 09-04-2022, 12:35 AM
RE: Entity add custom properties - by iRedds - 09-05-2022, 12:03 AM
RE: Entity add custom properties - by ozornick - 09-05-2022, 10:02 AM
RE: Entity add custom properties - by iRedds - 09-05-2022, 05:37 PM
RE: Entity add custom properties - by ozornick - 09-06-2022, 12:19 AM
|