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

[BUG]: saving model with mutliple fields relation is "not implemented" #16029

Open
bakos opened this issue Jul 22, 2022 · 4 comments
Open

[BUG]: saving model with mutliple fields relation is "not implemented" #16029

bakos opened this issue Jul 22, 2022 · 4 comments
Labels
bug A bug report status: unverified Unverified

Comments

@bakos
Copy link

bakos commented Jul 22, 2022

Describe the bug

When i try to save model with this relation: https://docs.phalcon.io/5.0/pl-pl/db-models-relationships#multiple-fields
it couses exception: Not implemented
trace lead to phalcon/Mvc/Model.zep line 4962 or in 5081 (i got both lines in some tests)

It was working on v3 and v4.

To Reproduce

Provide output if related. Provide coredump if any. Use https://docs.phalcon.io/en/latest/generating-backtrace as reference.

Steps to reproduce the behavior:

models like in docs

       /** @var Products $product */
        $product = Products::findFirst();
        $product->prd_name = $product->parts->par_name;
        try {
            $product->save();
        } catch (\Exception $e) {
            var_dump($e->getMessage());
            var_dump($e->getFile());
            var_dump($e->getLine());
        }
string(15) "Not implemented" 
string(21) "phalcon/Mvc/Model.zep"
int(5081)

Details

  • Phalcon version: 5.0.0RC3
  • PHP Version: 7.4.30
  • Operating System: Debian 11
  • Installation type: pecl
  • Server: Apache
  • Other related info (Database, table schema): Mariadb 10.3
@bakos bakos added bug A bug report status: unverified Unverified labels Jul 22, 2022
@zikezhang
Copy link
Contributor

it's prd_name defined in the model?

@bakos
Copy link
Author

bakos commented Jul 26, 2022

@zikezhang yes it is. models to the example were taken from documentation:

https://docs.phalcon.io/5.0/pl-pl/db-models-relationships#multiple-fields

I had a problem with that in a project where relation is more complicated. But again - it was working in previous versions of phalcon (v3, v4) so something changed.

@Drummi42
Copy link

@bakos hello! Do you have any new information on this bug?

@bakos
Copy link
Author

bakos commented Jan 30, 2023

@Drummi42 no, nothing new. still not working.

rudiservo added a commit to rudiservo/cphalcon that referenced this issue Aug 16, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Aug 17, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Aug 29, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Aug 29, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Aug 29, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Sep 6, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Sep 7, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Sep 7, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Sep 7, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Sep 7, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Sep 7, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Sep 8, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Sep 25, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Oct 11, 2023
rudiservo added a commit to rudiservo/cphalcon that referenced this issue Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: unverified Unverified
Projects
Status: Backlog
Development

No branches or pull requests

3 participants