addParentProperty recursive method impletented (will be used in updateData), and a minor fix in search by 0 (its equals to '' in php)