Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix $obj->relatedObj === null when not exists and fieldList #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KTP95
Copy link
Contributor

@KTP95 KTP95 commented Jan 1, 2016

 $firstObj = file::with('secondObj')->ById($firstId,'FirstTableField, SecondTableField(s)NoPrimary');
 print_r($firstObj->secondObj === null); // Before return error, now work

BUT - WARNING -
if SecondTableField(s)NoPrimary has a === null value , this return same $firstObj->secondObj === null as secondObj not exist...
I don't know so fix this... anyway is a little bug.

$firstObj = file::with('secondObj')->ById($firstId,'FirstTableField, SecondTableField(s)NoPrimary');
print_r($firstObj->secondObj === null);

BUT - WARNING -
if SecondTableField(s)NoPrimary has a === null value , this return same $firstObj->secondObj === null as secondObj not exist...
I don't know so fix this... anyway is a little bug.
@avbdr
Copy link
Collaborator

avbdr commented Mar 1, 2017

thanks for a patch. can you please add a test case for this issue?

@KTP95
Copy link
Contributor Author

KTP95 commented Mar 6, 2017

Sorry, i has writen this over 1 year ago, my memory is lost...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants