"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/View/Form/EntityContext.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

EntityContext.php  (cakephp-4.0.1):EntityContext.php  (cakephp-4.0.2)
skipping to change at line 661 skipping to change at line 661
$path = implode('.', $normalized); $path = implode('.', $normalized);
if (isset($this->_tables[$path])) { if (isset($this->_tables[$path])) {
return $this->_tables[$path]; return $this->_tables[$path];
} }
if (current($normalized) === $this->_rootName) { if (current($normalized) === $this->_rootName) {
$normalized = array_slice($normalized, 1); $normalized = array_slice($normalized, 1);
} }
$table = $this->_tables[$this->_rootName]; $table = $this->_tables[$this->_rootName];
/** @var \Cake\ORM\Association\BelongsToMany|null $assoc */
$assoc = null; $assoc = null;
foreach ($normalized as $part) { foreach ($normalized as $part) {
if ($part === '_joinData') { if ($part === '_joinData') {
if ($assoc) { if ($assoc) {
/** @var \Cake\ORM\Association\BelongsToMany $assoc */
$table = $assoc->junction(); $table = $assoc->junction();
$assoc = null; $assoc = null;
continue; continue;
} }
} else { } else {
$associationCollection = $table->associations(); $associationCollection = $table->associations();
$assoc = $associationCollection->getByProperty($part); $assoc = $associationCollection->getByProperty($part);
} }
if (!$assoc && $fallback) { if (!$assoc && $fallback) {
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)