Posts

addAttributeToSelect Call to undefined method M2

Image
Clash Royale CLAN TAG #URR8PPP .everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0; up vote 2 down vote favorite I have two custom modules and am calling one collectionfactory in other module and getting ` Call to undefined method addAttributeToSelect Collection file look like class Collection extends MagentoFrameworkModelResourceModelDbCollectionAbstractCollection /** * Initialize resource collection * * @return void */ public function _construct() $this->_init('VendorModuleModelHello', 'VendorModuleModelResourceModelHello'); and am calling in block use VendorModuleModelResourceModelHelloCollectionFactory; class Custom extends MagentoBackendBlockWidgetGridExtended public function __construct( CollectionFactory $collectionFactory, array $data = ) $this->collectionFactory = $collectionFactory; parent::__construct($context, $backendHelper, $data); protected function _prepareCollection() $col...

how to capture specific strings from line

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite how to capture only the sdX from the following line ( withe bash/awk/sed/perl one liner ) echo ""dfs.datanode.data.dir" : "/rid/sdb/oo/hdfs/data,/rid/sdc/oo/hdfs/data,/rid/sdd/oo/hdfs/data,/rid/sde/oo/hdfs/data,/rid/sdf/oo/hdfs/data"," expected output sdb sdc sdd sde sdf awk sed perl share | improve this question edited Dec 22 '17 at 12:02 FaxMax 423 2 19 asked Dec 22 '17 at 9:48 yael 2,009 11 45 add a comment  |  up vote 1 down vote favorite how to capture only the sdX from the following line ( withe bash/awk/sed/perl one liner ) echo ""dfs.datanode.data.dir" : "/rid/sdb/oo/hdfs/data,/rid/sdc/oo/hdfs/data,/rid/sdd/oo/hdfs/data,/rid/sde/oo/hdfs/data,/rid/sdf/oo/hdfs/data"," expected output sdb sdc sdd sde sdf awk sed perl share | improve this question edited Dec 22 '17 at...