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
User.find(id).populate('preferences').exec(function (err, user) { | |
if(err) { | |
sails.log.error("ERR:", err); | |
} | |
sails.services['util'].populateDeep('user', user[0], 'preferences.nestedPreferences', function (err, newUser) { | |
if (err) { | |
sails.log.error("ERR:", err); | |
} | |
console.log(newUser); | |
}); |
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
<?php | |
define('_JEXEC', 1); | |
// | |
// Author: Dirceu Pereira Tiegs <[email protected]> and other folks from #jdbr11 | |
// Jetworks Desenvolvimento Web | |
// | |
// run this inside joomla-platform/examples/ | |
require_once ('../libraries/import.php'); | |
jimport('joomla.application.cli'); |