Book a Demo

Author Topic: [PHP Type Hinting] Sync With Source  (Read 5439 times)

bclark

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
[PHP Type Hinting] Sync With Source
« on: August 04, 2006, 04:22:33 pm »
Creating an operation with type hinted parameters generates code correctly, but when synch'ing with source operation is removed.

Operation foo
Parameters:
[inout] files: array, private: var

Generates Code as:
public function foo(array &$files, $private = false)

Now add a parameter:
public function foo(array &$files, $private = false, array &$extras = null)

And Sync with code.  

Result:  Operation disapears from model.

« Last Edit: August 04, 2006, 04:32:28 pm by bclark »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: [PHP Type Hinting] Sync With Source
« Reply #1 on: August 06, 2006, 05:22:52 pm »
It looks like any by reference parameter with a type hint is causing a parser to fail to parse that method.  As a result EA is removing the method from the model when reverse engineering (and would cause a duplicate method when forward engineering)

We'll fix this up in a future build.