I am building a CSV import, and am looking to run through the CSV and display any potential errors to the user before actually doing the import.
$model->getErrors() only works after an attempted $model->save(), I am looking to get those potential errors before the save so the importer can then adjust his CSV file and make the necessary changes to have a flawless import.
Any ideas?
$model->validate();
$model->getErrors();