Skip to content
New issue

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

delete com cascate, model_id = Array #5

Open
gildonei opened this issue Nov 17, 2014 · 0 comments
Open

delete com cascate, model_id = Array #5

gildonei opened this issue Nov 17, 2014 · 0 comments

Comments

@gildonei
Copy link

Quando realizei um delete usando Cascade, em alguns casos o campo model_id estava entrando como um array no formato array('Model.id' => 'value'), então alterei os métodos: takeSnapshot e logQuery alterando a informação sobre o Id para o seguinte:

$id = (is_array($Model->id)) ? current($Model->id) : $Model->id;

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

No branches or pull requests

1 participant