Skip to content

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