We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using loadAll() function and works fine, but It doesn't populate the id for the related model
{ "id":"6", "idEscolaridade":"16", "descricao":"teste", "salario":5500.00, "Escolaridades":{ "id":"16", "descricao":"testando" } }
I'm using 'jaacoder/yii2-activated' to mapping the attributes, works for the parent model, but doesn't work for related models (ID column only)
My mapping function on "Escolaridades" model : `
public static function mapping(){ return [ 'id' => 'esco_id', 'descricao' => 'esco_descricao' ]; } `
public static function mapping(){ return [ 'id' => 'esco_id', 'descricao' => 'esco_descricao' ];
} `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using loadAll() function and works fine, but It doesn't populate the id for the related model
{ "id":"6", "idEscolaridade":"16", "descricao":"teste", "salario":5500.00, "Escolaridades":{ "id":"16", "descricao":"testando" } }
I'm using 'jaacoder/yii2-activated' to mapping the attributes, works for the parent model, but doesn't work for related models (ID column only)
My mapping function on "Escolaridades" model :
`
The text was updated successfully, but these errors were encountered: