Optimise Model::key() and fix some issues #688

Merged
merged 1 commit into from Nov 20, 2012

Projects

None yet

2 participants

@jails
Union of RAD member

Refactoring of #582:

  • function added to reduce the per-method cyclomatic complexity limit (It also reduce one nest level).

Fix :

  • with multiples keys return null if one of them miss in the datas
  • Model::key(array()) return null instead of returning the id.

Optimisation :

  • ::to('array') is no more the default behavior for looking for key in entities
  • removing the use of method_exists()
@nateabele nateabele merged commit 6a2e025 into UnionOfRAD:dev Nov 20, 2012

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment