Skip to content

Commit

Permalink
Fix incorrect _idFieldName for author collection
Browse files Browse the repository at this point in the history
fix the issue with $author->getId() is null
  • Loading branch information
magefan authored Feb 26, 2024
1 parent 7fc875f commit 3fe9b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/ResourceModel/Author/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Collection extends AbstractCollection implements AuthorCollectionInterface
/**
* @inheritDoc
*/
protected $_idFieldName = 'author_id';
protected $_idFieldName = 'user_id';

/**
* Constructor
Expand Down

0 comments on commit 3fe9b0a

Please sign in to comment.