Last active
August 29, 2015 14:15
-
-
Save conradjones/1af190ffe70c5ea07966 to your computer and use it in GitHub Desktop.
Collection joins in magento.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These are just some snippets for me to reference quickly for commonly used magento items. | |
FOR EAV collection | |
$collection->joinTable( | |
array("alias" => "module/entity"), | |
"join=join", | |
array("field_alias" => "field"), | |
"condition", | |
"joinType" ); | |
For NON-EAV table | |
$collection->join($table, $cond, $cols = '*') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment