Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

FatalThrowableError (E_ERROR) select #201

Open
khanhnam99 opened this issue Nov 1, 2019 · 1 comment
Open

FatalThrowableError (E_ERROR) select #201

khanhnam99 opened this issue Nov 1, 2019 · 1 comment

Comments

@khanhnam99
Copy link

i want select (column table)

    $params = array_merge([
        'parent_id'     => array(),
    ], $params);

    $params['parent_id'] = !empty($params['parent_id']) ? implode(',',$params['parent_id']) : null;

    $result = ModuleController::select(
        ModuleController::TABLE.'.id',
        ModuleController::TABLE.'.name',
        ModuleController::TABLE.'.controller_name',
        ModuleController::TABLE.'.action',
        ModuleController::TABLE.'.is_active',
        ModuleController::TABLE.'.module_id',
        ModuleController::TABLE.'.parent_id',
        ModuleController::TABLE.'.icon_menu'
    );

Capture

notice error

Capture2

@michail1982
Copy link

@khanhnam99 check use statments . ModuleController is not Eloquent\Model instance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants