Author |
Message |
dprecup
Joined: 25 Mar 2016 Posts: 1
|
Posted: Fri Mar 25, 2016 3:11 pm Post subject: Doctrine inheritance issue |
|
|
I'm using Doctrine and Zend Framework 2 in a project and I have the following situation:
I have a base entity class which contains a function, toArray, with the parameter object
public function toArray($object = false)
{
....
}
and a new entity class which extend the base entity class, let's name it class A.
I obfuscated the code and, when doctrine is generated the entity classes, the A class contains the function toArray without the default value, so I have:
public function toArray($object)
{
....
}
so I get the error:
A::toArray() should be compatible with BaseEntity::toArray($object = )
Can somebody help me with this? |
|
Back to top |
|
 |
yourithielen
Joined: 22 Mar 2018 Posts: 1
|
Posted: Thu Mar 22, 2018 5:16 pm Post subject: |
|
|
Had the same issue, it has to do with the reflection API:
Quote: |
Thanks for the report and the error you are seeing doesn't directly relate to ionCube so it is hard to say exactly what has gone wrong.
Have you used the --allow-reflection-all option when encoding? I would recommend using that first if you think the issue relates to the Reflection API.
If that fails then can you paste in the full command you are using to encode as well as attaching your phpinfo(); output as an HTML file for the machine where you are running the code. It may also be useful to check your error logs to see if any other errors are logged with information about the issue.
Kind Regards,
Ben
|
|
|
Back to top |
|
 |
Mark_Lang
Joined: 15 Nov 2018 Posts: 2
|
Posted: Thu Nov 15, 2018 11:01 am Post subject: |
|
|
Have a solution to this issue? |
|
Back to top |
|
 |
|